-
Notifications
You must be signed in to change notification settings - Fork 12k
Using build optimizer in 6.0.8 makes my production build freeze in Windows Edge and iOS Safari, works on Chrome and FF #11459
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
I don't know if it's related to this, but initially after the update I was having the error "No NgModule metadata found for 'AppModule'' so I'm using the workaround suggested in #8798 - adding
to my tsconfig.json. It fixes the error, but can it cause some reliability issues like this? I'm getting the frozen browser in many situations in the app just by clicking around so it's really hard to know what causes it - especially when it never happened before in earlier versions. It happens when components get unloaded and added to dom based on changes in the model (like the three layout buttons in the example site). |
I found the reason for the freeze - when I disable build optimizer, my app works as expected. The size goes up 300kb but it's better than freezing app. What such things does build optimizer do that it can cause the script to freeze? Is there any way to find the point where the app gets stuck? |
It appears the project is using an outdated version of the build optimizer ( |
You saved my day. I did:
Now it works, no more freezing. Thank you so very much! :) As a side-note, |
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. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Node-version: v9.4.0
npm-version: 6.1.0
ng --v:
The log given by the failure
There's no error in the browser console.
Mention any other details that might be useful
I updated my app to v6 from Angular CLI 1.7.4. It compiles, but the production version freezes the browser at certain points when using the app, always the same place. There's no log, both Edge on Windows 10 and Safari on iOS freeze when using the app. This didn't happen on 1.7.4.
Any tips on how to debug this? I can't replicate the problem when using
ng serve
, however, it does happen when usingng serve --prod
The text was updated successfully, but these errors were encountered: