Zack Jackson
Zack Jackson
1: Use promise new promise if you feel stuck 2: stop statically importing code, since that will cause webpack to load remotes upfront 3: This sounds like user error, remotes...
Init can only be called once. Instead of catching it. Do something like window.remote.didInit = true and just check if it was already initialized or not before calling init again....
hey yeah i can take a look
okay the sharing problem looks to be related to how next.js creates pages. The main webpack runtime expects to initialize all modules/remote improrts. Webpack container reference module id is in...
issueing a fix
@nodkz PR open for the plugin here: https://github.com/module-federation/nextjs-mf/pull/93
shpuld use webpack require. but ill send you the snippit tommorrow
Don’t use bundle loader. I’d start with removing that. Fn is not a function, usually caused by either a chunk loading from the wrong origin. Like public path isn’t set...
Might be related https://github.com/module-federation/module-federation-examples/issues/2066
Hey check privjs. We have a free module federation TS integration. Would love more feedback on it I'm glad you got it working. Enhanced will get more attention soon. I'm...