t***@outlook.com
t***@outlook.com
  • 发布:2024-01-04 20:54
  • 更新:2024-09-04 09:52
  • 阅读:474

uniapp Vite突然报错

分类:uni-app

[vite]: Rollup failed to resolve import "main.js" from "C:/Users/ASUS/Desktop/app exploit/detect/pages/Bluetooth/Bluetooth.vue".
20:49:42.375 This is most likely unintended because it can break your application at runtime.
20:49:42.375 If you do want to externalize this module explicitly add it to
20:49:42.379 build.rollupOptions.external

20:47:41.454 [vite] connecting...
20:47:41.460 [vite] connected.
20:49:32.215 已停止运行...
20:49:32.242 [vite] server connection lost. polling for restart...

2024-01-04 20:54 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

文件名或者目录结构有啥变化不

DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

看 Bluetooth/Bluetooth.vue 页面怎么了,页面清空看还有报错吗,尝试删除代码定位你的问题。如果可以,你也可以上传可复现的实例。

乔小猿

乔小猿

目前发现是类库版本高的问题,改成低版本就好了
"@dcloudio/types": "^3.4.8",
"@dcloudio/uni-automator": "3.0.0-4000820240401001",
"@dcloudio/uni-cli-shared": "3.0.0-4000820240401001",
"@dcloudio/uni-stacktracey": "3.0.0-4000820240401001",
"@dcloudio/vite-plugin-uni": "3.0.0-4000820240401001",

要回复问题请先登录注册