🚀 Migrating to @module-federation/enhanced v0.21.6 - Feedback Welcome #4250
jjoshi-space
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR: After upgrading MF from v0.11.4 → v0.21.6, static imports of remote modules broke (blank screen). Fixed by switching to dynamic
import()with async initialization. Looking for feedback on the approach.Our Setup
The Problem
After upgrade:
Root Cause
Static imports of remote modules evaluated before containers initialized:
Our Fix
Dynamic imports with mutable object pattern:
Await in Single-SPA lifecycle before app setup:
Questions
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions