Closed jaune001 closed 1 week ago
I assume this is not a problem of vite itself but you try to use a combination of vue-cli and vite together :thinking:
This is because vue-pdf
exports the raw Vue file, which esbuild can't handle unless there's a esbuild plugin that handles Vue files. Until plugin-vue supports something like https://github.com/vitejs/vite/pull/6801 (experimental), vue-pdf
should be publishing compiled JS files. Another workaround is to optimizeDeps.exclude: ["vue-pdf"]
so that the Vue files are processed by the Vite dev server. Its transitive deps may need to be re-included (docs).
Related: https://github.com/FranckFreiburger/vue-pdf/issues/304
It seems not related to vite-plugin-vue. try https://github.com/vitejs/vite-plugin-vue2
Describe the bug
after the import component library, prompt error,
error message:
@xx/up-ui is independent research and development components
Reproduction
https://github.com/WongYuYe/vite-vue2-demo
vite-vue2-demo import @xx/up-ui components
@xx/up-ui is research and development of internal component library
@xx/up-ui vue: 2.xx
System Info
Used Package Manager
npm
Logs
Validations