Open MrHOY opened 6 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?
Are you using yarn? It seems (from #4) that yarn causes this issue, while npm is working fine. I still have no idea why.
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
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
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'.