title: vue-router Failed to resolve async component default: ChunkLoadError: Loading chunk vendors~demo failed
body: <p>I wrote my program with <code>Laravel</code> and <code>Vuejs</code> and it works fine on the <code>localhost</code>, but it gets an error on the <code>host</code>.</p>
  <p><strong>Problem:</strong></p>
  <p>The program runs well on local host, but when I put it on the host, the following error is appears:</p>
  <blockquote>
  <p>[vue-router] Failed to resolve async component default:
  ChunkLoadError: Loading chunk vendors~demo failed</p>
  </blockquote>
  <pre><code>ChunkLoadError: &quot;Loading chunk vendors~demo failed.
  (missing: http://example.com/vendors~demo.js)&quot;
      requireEnsure http://example.com/js/manifest.js:127
      component webpack-internal:///./resources/js/router.js:56
      resolveAsyncComponents webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1904
      flatMapComponents webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1931
      flatMapComponents webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1931
      flatMapComponents webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1930
      resolveAsyncComponents webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1866
      iterator webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2121
      step webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1847
      step webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1851
      step webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1851
      step webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:1848
      iterator webpack-internal:///./node_modules/vue-router/dist/vue-router.esm.js:2140
      _callee$ webpack-internal:///./resources/js/permission.js:109
  </code></pre>
  <p><strong>What I did:</strong></p>
  <ul>
  <li>I assumed that the files might not be properly located on the host, but that was not the problem.</li>
  <li>The next possibility was to update <code>Webpack</code>, but that didn't solve the problem.</li>
  </ul>
  <p>Where is the problem?</p>