module-federation-examples icon indicating copy to clipboard operation
module-federation-examples copied to clipboard

Remote is not defined in nextjs-mf v8

Open haghsheno opened this issue 1 year ago • 1 comments

I'm using @module-federation/nextjs-mf in my NextJS app with typescript. After upgrading to version 8.1.1, i'm getting this error:

ReferenceError: remote is not defined
while loading "./login" from webpack/container/reference/app-remote

I also tried React.Lazy and dynamic import with ssr: false and wrapping it in Suspense.

@module-federation/nextjs-mf: 8.1.1
next: 13.1.6
webpack: 5.89.0

haghsheno avatar Jan 01 '24 15:01 haghsheno

try with 8.0.5

ScriptedAlchemy avatar Jan 14 '24 08:01 ScriptedAlchemy