DEV Community

GuyLearningReact
GuyLearningReact

Posted on

2 1

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?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay