-
-
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
BUG: Uncaught (in promise) Error: Loading chunk 0 failed. #5264
Comments
This only seems to happen, if I add The reason I explicitly added |
have you resolve this bug?i dont know how to resolve it |
You can check what I did in my repo I've posted. |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
I resolved by add |
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks! |
Got the same bug, adding |
@blasterbug Please open a new issue |
This error maybe can occur because you forgotten or cancel run |
got same error |
For my own case I am using ionic embedded in a web app. The default build paths do not apply. I have an ant script that moves built assets+scripts to web app directory. I just now understood webpack chunks. I just had to tell webpack that my publicPath is different. In my case I use cross-env to pass a process.env. that I need different publicPath (in custom webpack config for ionic) which I set to the root of my web app's public path and it solved my cased (this basically affects build paths that webpack will generate)-- I also made sure I copied the generated chunk files too. So, if you are in a situation like mine this may help. |
Anyone else still having this issue? I am seeing reports of this issue from users but am unable to reproduce. Have confirmed its not a network error though |
@pelhage, I do seem that problem occurring sometimes. To me, it seems it is an issue with the worker trying to fetch old chunks after updating the build. It's at least when I see this error happening (in production). |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm exporting using the
amd
libraryTarget
. The sources use dynamic imports and mywebpack.config.js
has multiple entries.Loading the
output
entry file works fine, but the file itself loads thefileA.js
file, resulting in this error:Uncaught (in promise) Error: Loading chunk 0 failed.
If the current behavior is a bug, please provide the steps to reproduce.
Here is a repo I created which shows the problem: https://github.com/johannes-z/webpack-test
What is the expected behavior?
The url of the
script.src
is correct (I double checked, opening the file in my browser and it was found).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.
node: v7.7.0
webpack: v3.1.0
The text was updated successfully, but these errors were encountered: