ScriptExternalLoadError: Loading script failed
Asked Answered
S

1

8

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]
      }
    }
  },
Spaceless answered 25/10, 2021 at 7:56 Comment(1)
I was facing the same issue!Skricki
K
2

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

Kowtow answered 6/1, 2022 at 11:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.