Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScriptExternalLoadError: Loading script failed

I am getting this error message :ScriptExternalLoadError: Loading script failed.

(missing: http://localhost:3005/remoteEntry.js).

when trying to load a remote app from the container app in development.

I have this optimization (when I put them in comment everything works) :

optimization:{
  runtimeChunk: 'single',
  splitChunks: {
    chunks: 'all',
    cacheGroups: {
      vendor: {
        test: /[\\/]node_modules[\\/]/,
        name: module => (module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/) || [])[1]
      }
    }
  },
like image 831
Ron Avatar asked Jul 03 '26 17:07

Ron


1 Answers

Because the runtime.js was be split into a separate chunk, but your remoteEntry.js need it. So you can comment the runtimeChunk: 'single', or you can see this solution: concat-runtime

like image 151
holy zheng Avatar answered Jul 05 '26 13:07

holy zheng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!