-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use with vite-plugin-federation as a remote application? #3259
Comments
https://module-federation.io/guide/basic/vite.html in init, remote needs Must use the implementation from federation organization. Any third party won't work |
@ScriptedAlchemy Oh, so cross organization library won't cover this cases 😓 |
Unlikely. V2 is based on our new runtime. Vite, rspack, rollup etc all implement the central runtime. You can try setting the remote Type to module on the MF plugin and that may work. But generally these forks were never compliant with our designs and just replicated some interfaces, that said our vite plugin should work just fine because it's implemented to our specs and we still control the runtime itself |
@ScriptedAlchemy For build time plugin we can for sure use your above suggestion to add type:module when we enroll the remotes. But what should be done in case of advance api example? But if we have let's say
And I want to use module federation runtime apis registerRemote and load remote. |
You would know up front when you call register remote. Otherwise you may have more luck with the json remotes. They should contain the module type. Read the docs about the manifest protocol |
Describe the bug
Versions
For Vite config
For webpack config
Reproduction
can not import vite remote app in webpack host app.
- Read the docs.
- Read the common issues list.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Module federation issue and not a framework-specific issue.
- The provided reproduction is a minimal reproducible example of the bug.
Not sure this is related with vite plugin, can not use with webpack host app
this is vite config from remote app
and this is host app actually import - using vue2
Reproduction
sorry, it's enterprise
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: