Open mannymu opened 10 months ago
ๅ้ฎ
Bot detected the issue body's language is not English, translate it automatically. ๐ฏ๐ญ๐ป๐งโ๐คโ๐ง๐ซ๐ง๐ฟโ๐คโ๐ง๐ป๐ฉ๐พโ๐คโ๐จ๐ฟ๐ฌ๐ฟ
The same question
Why did I fail to introduce 'virtual:federation' and the console prompt: virtual:__federation__
does not exist
The same question. Any ideas?
same๏ผplease fix it
In m case the only way is to put in ignore of optimization, other wa is set as external
because this function is virtual and injected b plugin.
I use this because I'm use import {} from "federation"
optimizeDeps: {
exclude: ["__federation__"],
},
Looks like there is some problem with the shared modules. I commented outshared
attribute, its working.
federation({
name: 'host-app',
remotes: {
svelte_remote_app: "http://localhost:3999/assets/remoteEntry.js",//"http://localhost:5173/assets/remoteEntry.js",
react_remote_app: "http://localhost:3998/assets/remoteEntry.js"//"http://localhost:5173/assets/remoteEntry.js",
},
//shared: ['svelte',"react","react-dom"] <- Commented
}),
Same issue for me, I am using Remix.js framework which is SSR with latest versions of react and "vite": "^5.1.0"
;
and if I am using shared: ["react", "react-dom"] it doesn't work for me and I am getting same error as others.
@Kronenberg Were you able to get it working with Remix apps? I'm facing this issue.
[vite] Internal server error: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '\x00virtual:
Versions
Reproduction
This error occurs in the server build of vue SSR
Steps to reproduce
What is Expected?
What is actually happening?