acaisoft / angular-azure-maps

MIT License
3 stars 7 forks source link

Cannot redeclare block-scoped variable 'ngDevMode' #26

Open SamazoOo opened 5 years ago

SamazoOo commented 5 years ago

ERROR in node_modules/@acaisoft/angular-azure-maps/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.

psrednicki commented 5 years ago

Please tell us about your environment:

andrzejkala commented 5 years ago

@srednicki95 I just ran into the same issue.

It does look like an issue with the newer Angular version.

zajacmp3 commented 5 years ago

Resolution is to add paths elements to tsconfig.json

{ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2018", "dom" ], "paths": { "@angular/*": ["node_modules/@angular/*"] } } }

From what I have found in the web it might be related to the fact that plugin does not use latest angular version or the same as you are at the moment.

flowest commented 5 years ago

i am having the same issue

bhavinshiroya1994 commented 5 years ago

same issue please any one let know if getting any solution