Cannot redeclare block-scoped variable 'ngDevMode' - Back with Angular 5.2.3
karansethi opened this issue · 0 comments
Hi I followed steps given to install prism for ionic, but I am getting below error
[00:11:01] typescript: ../node_modules/@angular/core/s
rc/render3/ng_dev_mode.d.ts, line: 9
Cannot redeclare block-scoped variable 'ngDevMode'.
[00:11:01] typescript: ...h/node_modules/ion-prism/node_modules/@angular/core/s
rc/render3/ng_dev_mode.d.ts, line: 9
Cannot redeclare block-scoped variable 'ngDevMode'.
My package json has dependencies. I tried to lower it to the 5.0.0 as used in your sample project. The same issue stopped occurring but prisms.css effects are not getting loaded in the ionic page, even can see the prism.css is loaded in network tab, but it's not working with below or higher dependencies please suggest
"dependencies": {
"@angular/animations": "5.2.10",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/compiler-cli": "5.0.0",
"@angular/core": "5.0.0",
"@angular/forms": "5.0.0",
"@angular/http": "5.0.0",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",