universal-module-federation-plugin icon indicating copy to clipboard operation
universal-module-federation-plugin copied to clipboard

Does not work in top level imports

Open jdthorpe opened this issue 2 years ago • 1 comments

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.

jdthorpe avatar Feb 22 '23 06:02 jdthorpe

ok i will update, thanks

zhangHongEn avatar Feb 22 '23 07:02 zhangHongEn