ScriptExternalLoadError Loading script failed

mallikg2k

GuyLearningReact

Posted on February 15, 2022

ScriptExternalLoadError Loading script failed

Hello Experts,

Please help!

This is regarding webpack Module Federation question.
Created 2 react apps (remote and host) using npx create-mf-app

Rendered Simple Hello in react app1.

Adjusted webpack config files in both react apps.

Works great in one machine. Did the same in other machine and it throws errors:
Uncaught ScriptExternalLoadError: Loading script failed.
(missing: http://localhost:8081/remoteEntry.js)
while loading "./Counter" from webpack/container/reference/remote..

Any help greatly appreciated!

💖 💪 🙅 🚩
mallikg2k
GuyLearningReact

Posted on February 15, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ScriptExternalLoadError Loading script failed
modulefederation ScriptExternalLoadError Loading script failed

February 15, 2022