Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition issues (Namespace 'NodeJS' has no exported member 'Events') #29

Open
webhacking opened this issue May 3, 2020 · 0 comments

Comments

@webhacking
Copy link

Hi, i have a Definition issues.
And i'm using nest v6

node_modules/nest-emitter/nest-emitter.module.d.ts:3:35 - error TS2694: Namespace 'NodeJS' has no exported member 'Events'.

3 declare type NestEmitter = NodeJS.Events

import {EventEmitter} from 'events';

/// <reference types="node" />
import { DynamicModule } from '@nestjs/common';
declare type NestEmitter = NodeJS.Events;
export declare class NestEmitterModule {
    static forRoot(emitter: NestEmitter): DynamicModule;
}
export {};

So i'm replace that. it works fine.

import {EventEmitter} from 'events';

/// <reference types="node" />
import { DynamicModule } from '@nestjs/common';
declare type NestEmitter = EventEmitter;
export declare class NestEmitterModule {
    static forRoot(emitter: NestEmitter): DynamicModule;
}
export {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant