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
The app crashes with "ERROR Element type is invalid. Received a promise that resolves to: undefined. Lazy element type must resolve to a class or function."
Impact
The plugin approach to supporting multiple react versions does not work when using the runtime utils, which are needed when loading modules dynamically.
The text was updated successfully, but these errors were encountered:
Problem
Multiple react version runtime plugin example does not work with
loadRemote
, onlyimport
.Example
https://github.com/module-federation/module-federation-examples/tree/master/runtime-plugins/multiple-react-versions
To recreate
In
app1/App.js
, update the lazy imports to useloadRemote
instead ofimport
:Expected behaviour
The app should continue to work as expected
Actual behaviour
The app crashes with "ERROR Element type is invalid. Received a promise that resolves to: undefined. Lazy element type must resolve to a class or function."
Impact
The plugin approach to supporting multiple react versions does not work when using the runtime utils, which are needed when loading modules dynamically.
The text was updated successfully, but these errors were encountered: