-
Notifications
You must be signed in to change notification settings - Fork 41
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
ChunkLoadError: Loading chunk XX failed (during add-on installation) #13295
Comments
I tried clicking the install button but I cannot reproduce... |
We believe that the We think that updating the lib might fix this problem. |
Specifically, the stack traces begin with this: There might be additional clues on what was fixed in 4.2.1 here: reactjs/react-transition-group#516 If upgrading to 4.2.1 doesn't stop the errors, we will try downgrading mozilla/addons-frontend#8226 |
tag prepped for a hotfix: mozilla/addons-frontend@2019.07.04...2019.07.04-1 |
The hotfix has been deployed in production but we're still seeing the same Sentry events 😞 |
I am going to try that in |
@willdurand Had some errors at first on a new profile - FF67 unbranded - Win10 on stage which I can no longer reproduce now. |
We're still seeing the same Sentry events after the second hotfix has been deployed. I believe it has nothing to do with It could be caused by mozilla/addons-frontend@5c1cfa7, maybe. |
I've also tested on an Android 8.0 with Fx67 and I could not reproduce the issue |
Most (all?) stack traces have a reference to the lang picker. It's weird because the lang picker does not use CSS transitions and updating the value of the lang picker reloads the page. |
Also, re: polyfills, the polyfills we're using in addons-frontend are likely not needed with FF 67+, so I am not sure that the updated polyfills are the cause. Some babel deps have been updated too during last week's tag, so a behavior may have changed there too. |
This seems to affect a high number of users but there are no actual reports from users, which is atypical considering our userbase. A likely explanation of this is that it's not breaking the site in any visible way. Thus, I'm dropping priority. It remains a mystery. None of us can reproduce it. The webpack issues up above suggest that it could be an intermittent problem due to the user's network or it could be caused by a browser extension on the client machine which is blocking webpack from loading resources. It would be nice to figure this out simply because something changed in this deployment to cause it. |
I wonder if sentry could be logging something on unload e.g. after lang picker interaction and during the start of the reload? |
I see that this error appeared after last week's push: https://sentry.prod.mozaws.net/operations/addons-frontend-amo-prod/issues/6015991/. It seems very similar to the error linked to this GitHub issue. There is a reference to That being said, I only noticed now that the babel polyfill requires Another issue to take into account: I believe the |
|
I am using AsyncComponent HOC to lazy load chunks, and was facing same issue.
the full HOC file looks like this,
|
Interesting, thanks @kaushalinfosys. Would you know the root cause, though? |
Yes, the root cause is webpack changes the chunk file name on every build considering the code has been changed, see the setting in If we keep our application tab open and meanwhile some PROD deployment is done, and if we try to navigate the page without reloading, this error will occur because the chunk references in main.[hash].js is old, but the lazy load file name is already changed on server. So main file can not find that chunk. |
mm, thanks. That's interesting because I did not think about that. I am confused because we have errors coming almost all the time in Sentry and we deploy only once a week 🤔 |
@kaushalinfosys i initially thought the same , but i have observed that even if there is no deployment done i still get this chunkLoadError quite sometimes in a day. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions. |
@willdurand Do you know where things stand with these errors? Are we still seeing a lot of them, or did the problem magically go away? |
still there AFAIK |
There are a lot of errors like below since the last push.
https://sentry.prod.mozaws.net/operations/addons-frontend-amo-prod/issues/6015921/
The text was updated successfully, but these errors were encountered: