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'. #14

Open
igormap42 opened this issue Jun 13, 2018 · 8 comments
Open

Cannot redeclare block-scoped variable 'ngDevMode'. #14

igormap42 opened this issue Jun 13, 2018 · 8 comments

Comments

@igormap42
Copy link

After every npm install I'm getting an error:

node_modules/ngx-bootstrap-product-tour/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

If to delete @angular folder from node_modules/ngx-bootstrap-product-tour/node_modules, it's compiling. But still I need to delete it every time I'm installing smth. Is it possible to fix this error once and forever?

P.S. I'm using angular 5

@salmaarsh06
Copy link

remove node_modules from the package , it will work fine .

@igormap42
Copy link
Author

@salmaarsh06 thank you for your interest. The problem is that, as I wrote before, if to delete @angular folder or node_modules (the same) it works, but temporary. Every new call of npm install will retrieve the problem.

@salmaarsh06
Copy link

yeah , i experienced the same problem , but thats the only solution that worked for me .

@patcat
Copy link

patcat commented Jul 5, 2018

any updates on this one? I'd love to try to use this but can't use it if I need to set up a script every time to clear that node_modules folder within the module each time

@bobbyfine
Copy link

same problem here

@bartromgens
Copy link

I think the Angular dependencies should be moved to peerDependencies in package.json to solve this.

@swapnildubey-7
Copy link

Any update on this issue?
I am using Angular 7.

@nfgallimore
Copy link

This solution worked for me:

https://stackoverflow.com/a/52318129/3097454

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

7 participants