Closed benmarch closed 5 days ago
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
Ah ok gotcha, thanks! I'll close this out, but I might try to get that working locally
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".![image](https://github.com/module-federation/core/assets/1646126/6c49c014-dc74-48e6-9f14-8007007a5d68)
I looked through the source code and found this line in the devtool package that looks for
window.__FEDERATION__.moduleInfo
: https://github.com/module-federation/core/blob/8941ef416a375b49f3b179eab18c32f4a042c9c8/packages/chrome-devtools/src/App.tsx#L21I can confirm that it's empty in the browser console:![Screenshot 2024-06-26 at 3 32 46 PM](https://github.com/module-federation/core/assets/1646126/bc5f3c0b-43f5-4cdf-a040-d1fdc659bf9a)
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