-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Loading chunk 1 failed. #5964
Comments
I'm digging a bit. I notice that with requireEnsure, script.timeout is set to 3 hours, 20 minutes (120000 seconds), and setTimeout is 2 minutes (120000 ms). Is there a way to configure the timeouts in webpack config? |
I'm looking at the webpack/lib/JsonpMainTemplatePlguin.js file to diagnose what is going on. Currently the script.onload event is calling |
More details... when the status code is 304 (not modified), the script.onerror event is calling scriptComplete. |
I guess we used the wrong unit for Timeout is configurable with |
@sokra I can help but don't really get what you mean by configurable as the configurable value passed from options has to be milliseconds according to schema. In that case we need to do a local conversion of the value to |
@sokra one of those values needs to be multiplied by either 1000 or .001, depending on which one you are modifying. `script.timeout = ${chunkLoadTimeout * 0.001};`, or `var timeout = setTimeout(onScriptComplete, ${chunkLoadTimeout * 1000});`, |
yep. I would keep the config value as milliseconds:
|
Before a change is made, I need to confirm that unit is seconds or milliseconds. I thought I saw something stating it is seconds, but I can't find documentation regarding the |
@lewismoten script.timeout is set in seconds so do |
The setTimeout part should not be touched |
Hi,
can you explain this part a little bit more ? |
@swASO Which browser? |
Chrome (v62) or DotNetBrowser ( based on Chromium v60) |
me to |
Guys can you please set up a small reproduction repo, i could look into it this weekend. @stylehuan @gerdus @swASO |
just did a npm upgrade to webpack 3.10.0 and my problem seems to have been resolved. |
No luck with webpack 3.10.0 |
i am not really sure if its really a webpack bug because we are using c# api with NancyFx and when nancy response 304 we get the chunk error ( other files, static files works with 304 ) but! when i use a little simple express server and the server response a 304 everything works fine. so maybe someone can confirm my assumption |
var timeout = setTimeout(onScriptComplete, 120000); } webpack.3.10.0 |
Hi, I have the same problem too. |
@gerdus i upgrade to webpack 3.10.0,but problem not resloved. |
Same, it's still occurring in 3.10.0. Has anybody managed to solve this issue? |
…ate expected bytes values
so, has the bug been fixed? |
Has fixed since 4.2.0 @feibi |
im on version the requested file is: |
I got here from https://forum.ionicframework.com/t/uncaught-in-promise-error-loading-chunk-20-failed/126937/51 |
I just encountered this issue out of the blue with absolutely no changes to dependencies or the code in a week. As is always with these problems, there seems to be no solution at all, so I tried just nuking node_modules and reinstalling and it fixed it. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
On Internet Explorer 11, a request to a bundle in the cache results in "Loading chunk 1 failed.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
All bundles should load regardless if you have a status code of 304 (not modified)
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
(This works fine in Chrome and MS Edge)
Internet Explorer 11.1770.14393.0
Windows 10
npm 3.10.10
node 6.12.0
webpack@^3.8.1
es5-shim@^4.5.9
es6-shim@^0.35.3
The text was updated successfully, but these errors were encountered: