modern-js-examples icon indicating copy to clipboard operation
modern-js-examples copied to clipboard

SSR Module Federation - Hydration Error

Open harshalhirve opened this issue 9 months ago • 1 comments

With reference to my previous issue: https://github.com/web-infra-dev/modern-js-examples/issues/47

If we run both the application in the DEVELOPMENT ONLY MODE (npm run dev), everything works fine.

BUT, if I change any code in the REMOTE application, then, HOST app application throws hydration errors: Image Image

My expectation is: HOST app must be able to display all the changes made in REMOTE app without throwing any HYDRATION errors.

How to handle this in Modern.js in SSR Module Federation?

Am I doing something wrong here?

Please advise. @ScriptedAlchemy

@jkzing @xuchaobei @chenjiahan @targeral @yimingjfe

harshalhirve avatar Jan 09 '25 15:01 harshalhirve