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
I have a React app, build with React 19 and vite, which uses some SVG icons, and we load them via svgr. The app works and builds fine.
However - when I use it as a micro-frontend with the module federation approach - I get this error in the browser console. on the host app:
Uncaught TypeError: can't access property "validated", oldElement._store is undefined
Debugging
I narrowed down the issues by stripping pieces of code little by little, and in the end - when I don't load SVG icons via svgr - then it works fine.
If I switch to wrapping the SVG code into a React FC and avoid svgr plugin - then the issue is gone.
Resolution
I ended up switching back to React 18, and all works fine now, using svgr plugin. The remote app works standalone and also as a micro-frontend.
Still - I decided to open the issue in case someone else stumbles upon this.