ERROR error during build: 10:26:29
[vite]: Rollup failed to resolve import "E:/GIT/test/vue-element-plus-admin-2.9.0/node_modules/.pnpm/element-plus@2.7.7_vue@3.4.32typescript@5.5.3/node_modules/element-plus/es/components/table-v2-fixed-dir/style/css" from "E:/GIT/test/vue-element-plus-admin-2.9.0/src/views/Authorization/User/User.vue?vue&type=script&setup=true&lang.tsx".
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
使用最新的2.9版本, 在任一组件引入TableV2FixedDir并使用,然后进行打包 即可触发报错:
ERROR error during build: 10:26:29
[vite]: Rollup failed to resolve import "E:/GIT/test/vue-element-plus-admin-2.9.0/node_modules/.pnpm/element-plus@2.7.7_vue@3.4.32typescript@5.5.3/node_modules/element-plus/es/components/table-v2-fixed-dir/style/css" from "E:/GIT/test/vue-element-plus-admin-2.9.0/src/views/Authorization/User/User.vue?vue&type=script&setup=true&lang.tsx". 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