nest-emitter
nest-emitter copied to clipboard
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;
@ahmedNY add "skipLibCheck": true
to tsconfig.json
@cncolder This does help
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.
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!