-
Notifications
You must be signed in to change notification settings - Fork 12k
App broken with a --prod build #10910
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
Comments
Related issue: #10658 |
I experience the same issue with target: ES5 ng serve --prod is also not working |
Thanks for reporting this issue. However, this issue is a duplicate of an existing issue angular/devkit#816. Please subscribe to that issue for future updates. |
Note: you mentioned that this happens with ES5 as well but the error message shown ( If you get a different message with ES5, please let me know. If you get the same message on ES5, then one of the libraries you import must be exporting ES2015 and that is why it breaks on Build Optimizer. You can disable Build Optimizer meanwhile though. |
@filipesilva I get the exact same message in es5 target. I am just using the default generated app from angular cli, not extra libraries and no modification to the code itself. I will be following it on the devkit repo |
Using the reproduction found above and changing the TS target to In the |
Only third party library seems to be rxjs. |
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
Here is the repo for repro. It's deployed to github pages here
ng new --routing -p basic -S -g --style scss basic-angular-app
tsconfig.json
to target ES2016. (Note: Problem happens with ES5 as well, I tried)ng build --prod --output-path docs --base-href basic-angular-app
Observed behavior
Desired behavior
App to just work and see the hello world screen with angular logo.
Mention any other details that might be useful (optional)
This is happening on my other project. It also lives in Github pages. You can see the same error there as well. It's broken in production.
The text was updated successfully, but these errors were encountered: