You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Angular6 - Cannot redeclare block-scoped variable 'ngDevMode' #4
When using library in a Angular6 project the compilation fails on the following error: ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
Root cause:
The Angular npm packages are read twice.
First the projects Angular 6 packages
Second angular-inline-editor's dependency (5.2.11)
Please release a new version which supports Angular6
Reacted by Infer-On, Lars, nayv and Jed-Marc Nocum
Late to the party but I was able to get this to work with Angular7 with one exception.
Adding this to your tsconfig.json under compilerOptions will prevent the Angular npm package from being read twice.
The only exception is that it will not work with the AoT enabled, have not dug into the why but disabling AoT / build optimizer under the "build" config in the angular.json file.
Activity
LouisMarzorati commentedon Mar 25, 2019
Late to the party but I was able to get this to work with Angular7 with one exception.
Adding this to your
tsconfig.jsonunder compilerOptions will prevent the Angular npm package from being read twice.The only exception is that it will not work with the AoT enabled, have not dug into the why but disabling AoT / build optimizer under the "build" config in the
angular.jsonfile.leabdalla commentedon Oct 7, 2019
Same problem here with angular 7.2.2.
Your solution didn't worked.