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

v5 MF2 module federation runtime release mode loadShareSync failed! #904

Open
hosseinmd opened this issue Jan 29, 2025 · 4 comments
Open
Labels
status:new New issue, not reviewed by the team yet. type:bug A bug report.

Comments

@hosseinmd
Copy link
Contributor

hosseinmd commented Jan 29, 2025

Describe the bug

dev mode working correctly but release mode not working error is

loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.
The original error message is as follows: 
Error: Invalid loadShareSync function call from runtime #RUNTIME-006
args: {"hostName":"digikala","sharedPkgName":"react"}
https://module-federation.io/guide/troubleshooting/runtime/RUNTIME-006, js engine: hermes

System Info

"@module-federation/enhanced": "0.8.7"

Re.Pack Version

5.0.0-rc

Reproduction

https://github.com/callstack/super-app-showcase

Steps to reproduce

use runtime init and build release mode

@hosseinmd hosseinmd added status:new New issue, not reviewed by the team yet. type:bug A bug report. labels Jan 29, 2025
@jbroma
Copy link
Member

jbroma commented Jan 29, 2025

@hosseinmd please make a more detailed repro so we can ensure that everything is setup correctly first 👍

@hosseinmd
Copy link
Contributor Author

Unfortunately, https://github.com/callstack/super-app-showcase doesn't work with webpack, and I am straggling to reproduce issue.

@hosseinmd
Copy link
Contributor Author

Additionally, I couldn't migrate to rspack. i have a lot of modules which used reanimated and rspack have issue with them.

@jbroma
Copy link
Member

jbroma commented Jan 31, 2025

Additionally, I couldn't migrate to rspack. i have a lot of modules which used reanimated and rspack have issue with them.

we now have official reanimated support through @callstack/repack-plugin-reanimated which simplifies the integration (and doesn't butcher performance gains from Rspack) - check out the readme of that package to see how to get started with it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:new New issue, not reviewed by the team yet. type:bug A bug report.
Projects
None yet
Development

No branches or pull requests

2 participants