We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For Vite config
For webpack config
Not sure this is related with vite plugin, can not use with webpack host app
e: Error: [ Federation Runtime ]: Failed to get remoteEntry exports. #RUNTIME-001 args: {"remoteName":"myRemoteApp","remoteEntryUrl":"
this is vite config from remote app
federation({ name: 'myRemoteApp', filename: 'remoteEntry.js', remotes: { 'myHostApp': '/resources/something/host', }, exposes: { './Spinner': './src/components/Spinner.vue', }, shared: ['vue', 'pinia', 'vue-router'], }),
and this is host app actually import - using vue2
import { init, loadRemote } from '@module-federation/runtime'; const instance = init({ name: "myHostApp", remotes: [ { name: "myRemoteApp", entry: "/resources/my-remote-app/assets/remoteEntry.js", }, ] }) export default { // ... async mounted() { const modules = await loadRemote('myRemoteApp/Spinner'); } }
The text was updated successfully, but these errors were encountered:
If you using @module-federation/enhanced you can try @module-federation/vite See example: webpack + vite: https://github.com/module-federation/vite/tree/main/examples/vite-webpack-rspack Maybe you should play with the from settings – but I don't think it will help because the host application uses webpack.
@module-federation/enhanced
@module-federation/vite
from
Sorry, something went wrong.
No branches or pull requests
Versions
For Vite config
For webpack config
Reproduction
can not import vite remote app in webpack host app.
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
Steps to reproduce
What is Expected?
What is actually happening?
The text was updated successfully, but these errors were encountered: