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

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; #12

Open
ahmedNY opened this issue Oct 26, 2019 · 4 comments

Comments

@ahmedNY
Copy link

ahmedNY commented Oct 26, 2019

No description provided.

shekohex pushed a commit that referenced this issue Nov 6, 2019
@cncolder
Copy link

@ahmedNY add "skipLibCheck": true to tsconfig.json

@sanzhardanybayev
Copy link

@cncolder This does help

@mKeRix
Copy link

mKeRix commented Jan 19, 2020

A different hot fix that doesn't disable type checking of libraries that I found is putting the following into <project root>/typings/node/index.d.ts:

declare namespace NodeJS {
    // drop-in hotfix for nest-emitter on Node 12, awaiting new version
    export interface Events extends EventEmitter {}
}

This re-establishes the missing interface until a new version of this plugin is released with the latest changes from master.

@iAbhinav
Copy link

iAbhinav commented May 1, 2020

A different hot fix that doesn't disable type checking of libraries that I found is putting the following into <project root>/typings/node/index.d.ts:

declare namespace NodeJS {
    // drop-in hotfix for nest-emitter on Node 12, awaiting new version
    export interface Events extends EventEmitter {}
}

This re-establishes the missing interface until a new version of this plugin is released with the latest changes from master.

Works perfectly!

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

5 participants