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

react_devtools_backend.js:2273 TypeError: i(...).get is not a function #369

Closed
xileliu opened this issue Sep 14, 2020 · 1 comment
Closed

Comments

@xileliu
Copy link

xileliu commented Sep 14, 2020

master-app:

  1. image
    2.helper:
    image

other-app:
1.image
2.image

master-app:
1.image

2.image

error:production
image

dev: success! no error

@ScriptedAlchemy
Copy link
Member

It looks like you're not attaching the remote correctly in prod. Check what window.remoteName returns.

Also you should use dynamic imports on federated modules when possible. Static imports hoist a lot to the upper async scope. If suspense or dynamic import can be used, use that.

Are you inclining script manually or adding the url via the remote syntax in the plugin.

Dev tools backend might be appending an entrypoint which messed up the module federation container

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

2 participants