Does not work in top level imports
jdthorpe opened this issue · comments
Jason Thorpe commented
Like the ModuleFederationPlugin, modules imported with this plugin need to be bootstrapped in the usual way. For example, putting the import remixRunRouter from "@remix-run/router"
import in the top-level app1/src/index.js
in the example repo, errors out with a very unhelpful message (Uncaught TypeError: Cannot read properties of undefined (reading 'call')
).
Probably worth mentioning this in the README like the module federation plugin does.
zhn commented
ok i will update, thanks