Open EricDunaway opened 2 years ago
I had the same problem
I had the same problem.
but I have a mistake here:
[vite:build-html] No corresponding legacy polyfill chunk found for /home/projects/vitejs-vite-4znqdj/index.html
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 vite:legacy-post-process
hook transformIndexHtml
execution time has been advanced.
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:
[vite:build-html] No corresponding legacy polyfill chunk found for /home/projects/github-kyokdx-u2bdcf/app2/index.html
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: https://stackblitz.com/edit/github-kyokdx-u2bdcf?file=readme.md,app2%2Fvite.config.js,package.json
cd app2
yarn build
I had the same problem.
I have a mistake here:
[vite:build-html] No corresponding legacy polyfill chunk found for /home/projects/github-kyokdx-u2bdcf/app2/index.html
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: https://stackblitz.com/edit/github-kyokdx-u2bdcf?file=readme.md,app2%2Fvite.config.js,package.json
cd app2 yarn build
I've got the same issue.
same issue. any update?
同样的问题,何时更新啊
仅在-w参数时出现
Same error, when combine createHtmlPlugin
and @vitejs/plugin-legacy
, vite will throw Error: [vite:build-html] No corresponding legacy entry chunk found for /.../index.html
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?
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