BUG: Uncaught (in promise) Error: Loading chunk 0 failed.
See original GitHub issueDo 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 my webpack.config.js
has multiple entries.
Loading the output
entry file works fine, but the file itself loads the fileA.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
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (3 by maintainers)
I resolved by add
publicPath: '/'
, to output in webpack, hope this help.This error maybe can occur because you forgotten or cancel run
ionic lab
on terminal and try to access any page. Give a look on this.