-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Federate module hot reload not working #3038
Comments
Yep, only v4 (beta right now supports module federation), we are working on the next beta release with more fixes, stable release will be in the end of month |
Hi, I'm trying to use HMR in a module federation POC app. I've been following a bunch of related issues on this and I'm not sure where this stands. While I can get my app to start via web-pack-dev server, I get an error whenever I edit a file:
I'm currently using: My module federation config is as follows:
Is HMR replacement possible with module federation right now or is this still under development? |
@wdfinch I have a workaround for your problem by excluding the module federation entry in You can use the
|
Based on your example, could you tell me exactly what these chunks are? Can you paste here a real-world example? Thanks! |
@ItayElgazar You can check the HTML outputted by webpack yourself. Right-click and choose View Page Source.
|
For clarity's sake, as someone who went through this thread and was also confused with understanding what chunk names should be and was looking for a real-world example of the HtmlWebpack Let's say you have a simple Webpack configuration that looks like this:
The above is an example where we're excluding the An alternative implementation where the
|
App Container config
Federate appconfig
Expected Behavior
App Container auto reload when federate app change
Actual Behavior
Hello,
I have finally succeeded in setting up my software environment (Dashboard...) in micro-frontend thanks to Module Federation. Only I notice that the live & hot reloading doesn't work when I modify a federate module:
I explain myself, I work on an App Shell which contains all my micro frontends (an app which manages the connection, the authorization in RBAC, the redux provider, etc...) and which will control all the other federated applications, only the automatic refresh will not reload the port 3001(AppShell) if I work on an app of the port 3002.
While searching on the internet I could find some unanswered questions about this, I would like to understand how is it possible to reload the app container automatically?
For Bugs; How can we reproduce the behavior?
For Features; What is the motivation and/or use-case for the feature?
The text was updated successfully, but these errors were encountered: