Webpack error, Loading chunk failed Webpack error, Loading chunk failed vue.js vue.js

Webpack error, Loading chunk failed


That is rather deep and surely not easily fixed in two steps, best you create a new project using cli, if convenient with recommended presets, and if it still persist check the npm packages you installed and make sure none of them are discontinued and are up-to-date at least according to your version of vue.


Its might be due to "webpack.config.js" where you can just try with updating output object

module.exports = {  output: {    chunkFilename: '[id].chunk.[chunkhash].js',  }};

Hope it should work!


This might be a cross site scripting problem.Make sure that myapp.com sets the correct headers.

On myapp.com, set this header:

Access-Control-Allow-Origin: https://domainA.com

You should also make sure, that your script tag has async set to false:

<script async="false"