You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, big thx for all the great work on the MF ecosystem!
I'm trying to split our app using module federation and I'm facing with weird issue that I'm having hard time figuring out.
The setup is:
Host using @modern-js@2.60.5 and @module-federation/modern-js0.7.1
Host also use enableCustomEntry but it's changed to async like specified in docs
Remote using@[email protected] and @module-federation/[email protected]
This app only expose some components to host app and also consume some components from the host app in this components.
Overall setup seams to be working but sometime I was getting some edge case race condition when component from host app was somehow empty and the export from module was only containing {Symbol(mf_module_id): 'host/Component'} without actual exports.
After some trial and error I added this plugin that somehow helped with the issue but not in 100% of cases.
I'm still facing this issue in place of our application but now it's not reproducible manually but only via our cypress E2E tests (previously it was reproducible manually as well but not all the time and sometime component was available as it should)
I was trying to prepare reproducible repo but on simple example this issue is not reproducible.
Any ideas what could cause this kind of behaviour?
The text was updated successfully, but these errors were encountered:
adam187
changed the title
Package from host app is not always available in sub app.
Package from host app is not always available in remote app.
Nov 7, 2024
Otherwise can you hit me on Twitter so we can zoom and i can see your actual system. This is near impossible to diagnose without being able to replicate and we have not seen it on any of our thousands of apps at bytedance
Describe the bug
First of all, big thx for all the great work on the MF ecosystem!
I'm trying to split our app using module federation and I'm facing with weird issue that I'm having hard time figuring out.
The setup is:
Host using @modern-js@2.60.5 and @module-federation/modern-js0.7.1
Host also use
enableCustomEntry
but it's changed to async like specified in docsRemote using@[email protected] and @module-federation/[email protected]
This app only expose some components to host app and also consume some components from the host app in this components.
Overall setup seams to be working but sometime I was getting some edge case race condition when component from host app was somehow empty and the export from module was only containing
{Symbol(mf_module_id): 'host/Component'}
without actual exports.After some trial and error I added this plugin that somehow helped with the issue but not in 100% of cases.
I'm still facing this issue in place of our application but now it's not reproducible manually but only via our cypress E2E tests (previously it was reproducible manually as well but not all the time and sometime component was available as it should)
I was trying to prepare reproducible repo but on simple example this issue is not reproducible.
Any ideas what could cause this kind of behaviour?
Reproduction
https://github.com/adam187/mf-example
Used Package Manager
yarn
System Info
Validations
The text was updated successfully, but these errors were encountered: