You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using module federation with vue 3 as remote and vue 3 (with laravel) as the host, but while the host access the remote component I get error like this
TypeError: Failed to resolve module specifier '__laravel_vite_placeholder__/node_modules/.vite/deps/vue.js?v=5d8d6ebd' at get (__x00__virtual:__federation__:14:36) at Object.get (__x00__virtual:__federation__:23:30) at we (__federation_fn_import-a6fff6c2.js:1:4445) at Ce (__federation_fn_import-a6fff6c2.js:1:3996) at __federation_expose_TestComponent-af96f67a.js:1:100
Hi,
I'm using module federation with vue 3 as remote and vue 3 (with laravel) as the host, but while the host access the remote component I get error like this
TypeError: Failed to resolve module specifier '__laravel_vite_placeholder__/node_modules/.vite/deps/vue.js?v=5d8d6ebd' at get (__x00__virtual:__federation__:14:36) at Object.get (__x00__virtual:__federation__:23:30) at we (__federation_fn_import-a6fff6c2.js:1:4445) at Ce (__federation_fn_import-a6fff6c2.js:1:3996) at __federation_expose_TestComponent-af96f67a.js:1:100
my vite configuration in remote is:
federation({ name: 'remote-app', filename: 'remoteEntry.js', exposes: { './TestComponent': 'src/components/TestComponent.vue', './TestPage': 'src/pages/TestPage.vue' }, shared: ['vue'], }),
and my vite configuration in my host:
federation({ name: 'host-app', remotes: { remote_app: 'http://remote-app.local/assets/remoteEntry.js', }, filename: 'remoteEntry.js', exposes: { }, shared: ['vue'], }),
import TestComponent from 'remote_app/TestComponent'
</script>
I hope you can help me with that issue, Thank you.
The text was updated successfully, but these errors were encountered: