ngDevMode redeclare
See original GitHub issueError given by angular-cli.
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/@zxing/ngx-scanner/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
The problem probably is the Angular is also installed in the node_modules
of ngx-scanner module, and they are colliding.
Version: 1.0.0-dev.759282
On windows machine removing the node_modules/@zxing/ngx-scanner/node_modules
folder solved the problem.
Under linux on CircleCI there was no problem.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Cannot redeclare block-scoped variable 'ngDevMode'
I ran into the same error, although I think it was caused by a reference to a Typescript file located in a different...
Read more >error TS2451: Cannot redeclare block-scoped variable ...
error TS2451: Cannot redeclare block-scoped variable 'ngDevMode' #21670 ... I have a similar and maybe related problem with ngDevMode .
Read more >Angular – How to fix “cannot redeclare block-scoped variable ...
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
Read more >Angular 6 error ts2451 cannot redeclare block scoped ...
I need senior developer with experience in Node and Express. My current project works well on node 14. But after upgrading node to...
Read more >Flexmonster with angular 6
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I close this, as it has worked with the latest version.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.