qligier / angular4-events

Events is a publish-subscribe style event system based on sqlProvider/angular2-pubsub
7 stars 4 forks source link

Cannot redeclare block-scoped variable 'ngDevMode' with angular 5 #7

Open MrHOY opened 6 years ago

MrHOY commented 6 years ago

Angular version: 5.1.0

angular4-events: 5.0.0

when I run : ng serve Error: ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. node_modules/angular4-events/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

rahul-ionic commented 5 years ago

I have found the same issue with angular 7.

(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

Any update on this?

qligier commented 5 years ago

Are you using yarn? It seems (from #4) that yarn causes this issue, while npm is working fine. I still have no idea why.

vlavrynovych commented 5 years ago

Same issue with yarn and npm. And it does not looks like somebody is going to resolve it. I found another lib to use with angular 7

qligier commented 5 years ago

I've uploaded two new versions that should fix this issue with yarn. There was a version mismatch between the Angular lib of your project and the Angular lib required by the module. Can you check if it works on your side?

yarn upgrade angular4-events@5.0.2 # for Angular 6
yarn upgrade angular4-events@8.0.0 # for Angular 8