X [ERROR] Could not resolve "@vue/reactivity"
14:20:17.525 ../../../uniCloud-blog/node_modules/element-plus/es/hooks/use-lockscreen/index.mjs:2:25:
14:20:17.538 2 │ import { computed } from '@vue/reactivity';
14:20:17.541 ╵ ~~~~~
14:20:17.550 You can mark the path "@vue/reactivity" as external to exclude it from the bundle, which will remove this error.
14:20:20.791 14:20:20 [vite] Build failed with 1 error:
14:20:20.792 ../../../uniCloud-blog/node_modules/element-plus/es/hooks/use-lockscreen/index.mjs:2:25: ERROR: Could not resolve "@vue/reactivity"
7***@qq.com
- 发布:2023-02-23 14:23
- 更新:2023-06-13 22:15
- 阅读:624
#插件讨论# 【 uniCloud Vue 3 element 体积超小的全栈博客项目 - 西梁 】运行时报这个错误,请问是什么原因
分类:uni-app
3 个回复
星海扬帆 - 星帆云海
解决了么?我今天也遇到了这个问题
新一技术
X [ERROR] Could not resolve "@vue/reactivity"
新一技术
解决方法
星海扬帆
我是改了element-plus
将/node_modules/element-plus/es/hooks/use-lockscreen/index.mjs中的
import { computed } from '@vue/reactivity';
改为:
import { computed } from 'vue';
2023-06-13 22:20
新一技术
回复 星海扬帆: 刚跑了一下,首页没有登陆退出功能,打算换一个项目玩,没空自己加功能呀(:
2023-06-13 23:02