vue3 vite2 发布报 Rollup failed to resolve import “element-china-area-data“ 错误
发布前端项目pnpmrunbuild:prod出现Rollupfailedtoresolveimport“element-china-area-data”错误解决方法:在项目的vite.config.js中增加如下代码:build:{rollupOptions:{external:["element-plus","element-china-area-data"],},},如下图所示:解决