DEV Community

GuyLearningReact
GuyLearningReact

Posted on

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!

Top comments (1)

Collapse
 
shivampawar profile image
Shivam Pawar

Is your counter app is in running state on other machine?