Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Does not work in top level imports #4

Open
jdthorpe opened this issue Feb 22, 2023 · 1 comment
Open

Does not work in top level imports #4

jdthorpe opened this issue Feb 22, 2023 · 1 comment

Comments

@jdthorpe
Copy link

jdthorpe commented Feb 22, 2023

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.

@zhangHongEn
Copy link
Owner

ok i will update, thanks

@zhangHongEn zhangHongEn pinned this issue Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants