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 just upgraded my NextJS MFEs to MF 2.0 and everything is working as expected. I installed the Chrome Extension to test out the proxy functionality, but it just shows an icon and "No ModuleInfo Detected".
I looked through the source code and found this line in the devtool package that looks for window.__FEDERATION__.moduleInfo:
Next doesnt support most of the new ecosystem. Youd need to use the json protocol for remotes and currently i dont think next works with the json protocol / havent tried
I was able to get this working by making some changes to my runtime plugin. I opened a PR with similar changes in case you want to incorporate them; should be a non-breaking change: #2726
Describe the bug
I just upgraded my NextJS MFEs to MF 2.0 and everything is working as expected. I installed the Chrome Extension to test out the proxy functionality, but it just shows an icon and "No ModuleInfo Detected".
I looked through the source code and found this line in the devtool package that looks for
window.__FEDERATION__.moduleInfo
:core/packages/chrome-devtools/src/App.tsx
Line 21 in 8941ef4
I can confirm that it's empty in the browser console:
I can also confirm that it's empty in the
nextjs-ssr
example app: https://github.com/module-federation/module-federation-examples/tree/master/nextjs-ssrJust wondering if I'm missing some config to enable it, or if it's a bug.
Reproduction
https://github.com/module-federation/module-federation-examples/tree/master/nextjs-ssr
Used Package Manager
npm
System Info
Validations
The text was updated successfully, but these errors were encountered: