-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot redeclare block-scoped variable 'ngDevMode' - Back with Angular 5.2.3 #10
Comments
@tiaguinho this happens with angular core. If I downgrade just angular core to 5.2.2 - it works. The ngDevMode is seeing a global declaration of itself when it comes to project dependencies and this lib's dependencies and when you have two different angular versions 5.2.2 vs 5.2.3. |
same here @tiaguinho |
@tiaguinho Need a solution that prevents future upgrading from colliding. |
I'm trying to fix this problem. |
@tiaguinho any luck? |
@tiaguinho angular just updated to 5.2.4 - still an issue with core. Have to stay on 5.2.2 to avoid the error. |
@tiaguinho getting a typescript error with AOT again - not sure if it's related. Here is info on it maybe - angular/angular#15767 typescript error [10:21:47] ionic-app-script task: "build" |
@tiaguinho have you had a chance to update it? |
@tiaguinho thanks for your great work! |
@tiaguinho upgraded to Angular 5.2.5 core and it's still an issue. Any progress with updating the app? At the very least can you release a version with the dependencies at 5.2.5 until you complete the fix. |
@tiaguinho can you release a version with the dependencies at 5.2.5 until you complete the fix. |
@tiaguinho i was wondering if you had any updates regarding this? Thanks |
This week was crazy, so I'll try to finish this on the weekend. |
no problem thanks for your help |
@tiaguinho any progress? |
also interested @tiaguinho |
@tiaguinho still an issue with core 5.2.6 |
@tiaguinho also with 6.0.0-beta.5 (2018-02-22) core it breaks. |
@tiaguinho @TalissonJunior any updates on fixing this or at least updating it to handle angular 5.2.7 for the time being? |
@tiaguinho @TalissonJunior Still an issue with 5.2.8 as expected. Any updates? |
@tiaguinho also would be interested in this. |
@tiaguinho @TalissonJunior Any update? |
It's not a issue from this project. It's a conflict, because this repo and the ionic uses the angular/core, and same constant are declareted when typescript build the node_modules folder. |
I don't know if I would say it's an angular issue perse. I see that they mention a couple solutions:
Quote form 1. That might help. "The problem is fundamentally here, "paths": { The simple way around this is to have module and app share the same copy of angular instead of having there own. In other words, move the package.json up one directory. If you require to have a separate compilation then I recommend using something like ng-packgr to help build the module directory as a package. This package can then be installed into the node_modules of app. We are working to improve the ergonomics of libraries and is one of our primary focuses for this release cycle. For now, however, you need to ensure that only one copy of angular is found by the compiler or separately compile the modules using ng-packgr." |
@tiaguinho Getting this error.
ionic serve fails in Angular 5.2.3, Ionic 4.5.3, Ionic2-Mask 1.0.8
typescript: node_modules//src/render3/ng_dev_mode.d.ts, line: 9
Cannot redeclare block-scoped variable 'ngDevMode'.
typescript: ...es/ionic2-mask-directive/node_modules//src/render3/ng_dev_mode.d.ts, line: 9
Cannot redeclare block-scoped variable 'ngDevMode'.
The text was updated successfully, but these errors were encountered: