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'm trying to call remote modules dynamically using "injectScript", my host app is Next 14 while the remotes can be Angular or React, the Angular remote works correctly, but the React applications cause a Hook error. React apps are usually at version 17.X. Evidence of the error follows.
Dont use next/dynamic, use react.lazy
dont use federation/utilities package, use module-federation/runtime
If server side, react needs to be marked as external in the remote server build for commonjs, next cant bundle react correctly
Describe the bug
I'm trying to call remote modules dynamically using "injectScript", my host app is Next 14 while the remotes can be Angular or React, the Angular remote works correctly, but the React applications cause a Hook error. React apps are usually at version 17.X. Evidence of the error follows.
This is my host app using the injectScript
Obs: this is component
DynamicBundle
and i call this component when i want load dynamic chunkReproduction
n/d
Used Package Manager
npm
System Info
Validations
The text was updated successfully, but these errors were encountered: