NMilicic / ngx-bootstrap-product-tour

Angular product tour library
MIT License
12 stars 16 forks source link

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

Open igormap42 opened 6 years ago

igormap42 commented 6 years ago

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 commented 6 years ago

remove node_modules from the package , it will work fine .

igormap42 commented 6 years ago

@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 commented 6 years ago

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

patcat commented 6 years ago

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 commented 6 years ago

same problem here

bartromgens commented 6 years ago

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

swapnildubey-7 commented 5 years ago

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

nfgallimore commented 5 years ago

This solution worked for me:

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