-
Notifications
You must be signed in to change notification settings - Fork 12k
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
registerLocaleData in prod mode causes runtime error with angular 6.0.0-rc.4 and angular-cli 6.0.0-rc.4 #10322
Comments
I can confirm that the imported locale data from |
It seems to be the build optimizer, with |
Ok so we've tested multiple scenarii: |
angular/angular#23366 together with angular/devkit#694 should fix this problem. |
Also prevent Build Optimizer from running twice on Angular packages. Partially address angular/angular-cli#10322.
Should be fixed in the next RC of CLI together with Angular. |
@filipesilva I upgraded angular and angular-cli to 6.0.0-rc.5, and the bug is still present.
Repro project: https://github.com/jnizet/clibug
|
Reopened to investigate, thanks for the repro @jnizet ! |
@filipesilva im not sur if it is related but in 6rc6 and 6rc7, I get: here's my angular.json:
problem's here even if i set buildOptimzier to false. BUT when I set "optimization" to false and (buildOptimizer true or false) it works! My app run! here is my command: |
@istiti make sure that you update angular to RC6 as well, and clean your node_modules folder first because I've noticed that sometimes the |
@ocombe im already on angular rc6 after running
and I confirm it works ! |
Also prevent Build Optimizer from running twice on Angular packages. Partially address #10322.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng new
, and make sure to use angular 6.0.0-rc.4 and angular-cli 6.0.0-rc.4 (see versions above)ng serve --prod
http://localhost:4200
You can also directly use the repro project at https://github.com/jnizet/clibug.
Observed behavior
White page, with an error in the console:
Desired behavior
The page should work fine
Mention any other details that might be useful (optional)
--prod
.The text was updated successfully, but these errors were encountered: