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

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

Open
MrHOY opened this issue Jun 27, 2018 · 4 comments
Open

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

MrHOY opened this issue Jun 27, 2018 · 4 comments

Comments

@MrHOY
Copy link

MrHOY commented Jun 27, 2018

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
Copy link

I have found the same issue with angular 7.

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

Any update on this?

@qligier
Copy link
Owner

qligier commented Jan 2, 2019

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
Copy link

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
Copy link
Owner

qligier commented May 30, 2019

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

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

4 participants