-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
federation runtime vue 3 remotes with getPublicPath generates double calls (one with wrong public path) #2810
Comments
Hello, |
Hello, |
Hello, |
+1, seeing the same issue as well (with React, although that doesn't really matter here) |
Hello, |
hmm seems like a legit issue. Will check the source code. |
Hello Zack, |
Hello Zack, |
Hello again, |
Perfect |
Stale issue message |
Bump |
The wrong css asset is loaded by producer's miniCss runtime . It will use publicPath + assetUrl as final url . And the producer not set specific publicPath , so it will call twice . |
I am having the exact issue as the original poster describes, but when using RsBuild. I used the workaround mentioned of setting config.output.publicPath, but I am setting it to a specific URL (not 'auto') and it builds the mf-manifest.json with |
Describe the bug
Hello,
I use federation runtime to dynamically import vue 3 remotes with getPublicPath.
some css, vendors assets are called twice:
you can see screenshots in the repro project README.
It doesn't always generate an issue as one of the two calls succeeds.
I don't have this behavior if I replace getPublicPath by a static publicPath.
Thank you
Reproduction
https://github.com/WeetA34/mf-double-calls-repro
Used Package Manager
yarn
System Info
Validations
The text was updated successfully, but these errors were encountered: