@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tre

2023-11-07

当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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

@vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tre 的相关文章

随机推荐