-
If your project's hmr fail, please make sure the following steps.
If these steps is ok, you are not far from success, set configuration like
After doing this you can high probability of getting hmr success. If you still can not get hmr, please provide codesandbox here, i will help you. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 34 replies
-
does it work in old version of module federation? i.e one exported by webpack, not enhanced version |
Beta Was this translation helpful? Give feedback.
-
Weighing in here. Regarding LOCAL DEVELOPMENT ONLY. Everything mentioned in the original post here was configured correctly on our end, but we still couldn't get HMR to work correctly for our setup with React using Old MF builtin from webpack when developing locally. Updating JUST our top-most host application's config by doing: config.optimization.runtimeChunk = 'single' Fixed HMR for host + remotes. |
Beta Was this translation helpful? Give feedback.
-
Does someone know how to config it to rsbuild? |
Beta Was this translation helpful? Give feedback.
-
i assume this does not work in nextjs? |
Beta Was this translation helpful? Give feedback.
-
I have a problem with slow HMR because of dts generation. With |
Beta Was this translation helpful? Give feedback.
-
Is this working for runtime remotes? HMR in the rspack_hmr |
Beta Was this translation helpful? Give feedback.
-
How can i configure HMR with webpack ModuleFederationPlugin? |
Beta Was this translation helpful? Give feedback.
-
I followed this guide here: I have set ![]() |
Beta Was this translation helpful? Give feedback.
-
Hi @nyqykk, I am trying to setup a simple Module Federation with Webpack and HMR project but I cannot make it work correctly. I have gone down to the minimal case that does not work, to be sure I am starting right and then going up but it is failing in the first step. I have uploaded the project here : https://stackblitz.com/edit/webpack-webpack-js-org-exj81u?file=apps%2Fremote%2Fsrc%2FApp.tsx To run it, just open the terminal in stackblitz and do: If I remove the ModuleFederationPlugin from the Webpack config file, the HMR work as expected. Could you help me find out what is wrong here ? Thank you ! |
Beta Was this translation helpful? Give feedback.
-
Hey legends! Im having an issue with HMR on mf v2 with rsbuild react host and webpack remotes. The page does a full refresh on update.
I dont have a replication at the moment, but wondering if anyone else has had this issue? |
Beta Was this translation helpful? Give feedback.
use bundleChain to config output.uniqueName and you need the newest version of rsbuild