Rollup failed to resolve import "virtual:svg-icons-register"
BlueBoyC opened this issue · comments
BlueBoyC commented
electron 打包时模块引入错误
错误内容:
[vite]: Rollup failed to resolve import "virtual:svg-icons-register" from "D:/workspace/vite-demo/src/main.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
error during build:
Error: [vite]: Rollup failed to resolve import "virtual:svg-icons-register" from "D:/workspace/vite-demo/src/main.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external