-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
build --watch does not output html or css when @vitejs/plugin-legacy is used #6133
Comments
I had the same problem |
I had the same problem. but I have a mistake here:
Reproduction: https://stackblitz.com/edit/vitejs-vite-4znqdj?file=vite.config.ts&terminal=build-w |
I printed some logs that showed that some hook functions were executed in the wrong order when using watch。 plugin How should i resolve this? Reproduction: https://stackblitz.com/edit/vitejs-vite-4znqdj?file=vite.config.ts&terminal=build-w |
I had the same problem. I have a mistake here: my project use @originjs/vite-plugin-federation and @vitejs/plugin-legacy both. Remove @originjs/vite-plugin-federation,the mistake will gone. I try to changed the filename in the federation configuration to "remoteEntry-legacy.js",the mistake also will gone,but I not sure @vitejs/plugin-legacy work successfull. Reproduction: cd app2
yarn build |
I've got the same issue. |
same issue. any update? |
同样的问题,何时更新啊 |
仅在-w参数时出现 |
Same error, when combine plugins: [
createHtmlPlugin({
inject: {
data: {
injectScript: `<script src="/public/co-channel.js"></script>`,
},
},
}),
legacy({
targets: {
ie: '11',
},
}),
] |
+1 同样是 federation,就算改成 -legacy, remoteEntry 也不会被编译 |
same problem when i use" lerna run build --scope=main --stream --parallel -- --watch "to watch "vite build --mode production", how can i solve this |
any updates? |
how to resolve problem |
any updates? |
Is there any way for fix this issue |
It's amazing that this issue came up in 2021! No solution or instructions so far? I'm experiencing the same problem. |
Describe the bug
Vite does not output html or css when the
@vitejs/plugin-legacy
plugin is usedPossibly related to #3279 but that issue was closed
Reproduction
https://stackblitz.com/edit/vite-c4bxea?devtoolsheight=33
Reproducible by running
vite build --watch
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: