Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The remote server itself doesn't work with moduleFederationPlugin #1

Open
Jinjiang opened this issue Mar 5, 2025 · 0 comments
Open

Comments

@Jinjiang
Copy link

Jinjiang commented Mar 5, 2025

It doesn't work if I import any thing like import React from 'react' in remote server

Error log in browser console:

index.esm-C366PSkt.js:891 Uncaught Error: [ Federation Runtime ]: Please call init first
    at error (index.esm-C366PSkt.js:891:8)
    at assert (index.esm-C366PSkt.js:884:18)
    at loadShare (index.esm-C366PSkt.js:3185:2)
    at loadSharedToRegistry (button-DHUhcYRc.js:7:17)
    at button-DHUhcYRc.js:23:7

Turning off the moduleFederationPlugin can make it back to normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant