ee0552f837
问题原因: - 上次提交在 vite.config.js resolve.alias 中将 element-plus 直接映射到 es/index.mjs 文件路径 - 这导致 import 'element-plus/dist/index.css' 时, Vite 拼接路径为 es/index.mjs/dist/index.css,文件不存在 - 报错: Failed to resolve import 'element-plus/dist/index.css' 解决方案: - 移除 element-plus 的 resolve.alias 映射 - 包名保留为包名,Vite 的 node_modules 解析机制可正确处理 element-plus 的 JS 入口和 CSS 路径 - start.sh 已有清缓存+自动重试机制兜底
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.