当npm run serve 的时候 出现这个错误

 @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to 
be present in the dependency tree.
解释:
@ vejs /plugin-vue需要vue(>=3.2.13)或@vue/compiler-sfc存在于依赖树中。 
只要大于或等于3.2.13版本都能处理该问题

解决办法:

 yarn :
yarn add vue@3.2.26

npm :
npm i vue@3.2.26
Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐