7***@qq.com
7***@qq.com
  • 发布:2024-07-20 22:43
  • 更新:2024-07-22 14:48
  • 阅读:435

运行Vu2报错Uncaught ReferenceError: uni is not defined

分类:HBuilderX

uniapp的vue3能正常运行helloword,运行vue2会报错Uncaught ReferenceError: uni is not defined

Uncaught ReferenceError: uni is not defined
at Object.QMsq (index.js:1050:1)
at webpack_require (index.js:849:30)
at fn (index.js:151:20)
at Object.jmA3 (index.js:1140:1)
at
webpack_require
(index.js:849:30)
at fn (index.js:151:20)
at 1 (index.js:940:18)
at webpack_require (index.js:849:30)
at checkDeferredModules (index.js:46:23)
at index.js:925:18
QMsq @ index.js:1050
webpack_require
@ index.js:849
fn @ index.js:151
jmA3 @ index.js:1140
webpack_require @ index.js:849
fn @ index.js:151
1 @ index.js:940
webpack_require
@ index.js:849
checkDeferredModules @ index.js:46
(匿名) @ index.js:925
(匿名) @ index.js:928
ch

2024-07-20 22:43 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

哪个HBuilder?试下最新版本,如果还有问题提供可复现示例(上传附件)

要回复问题请先登录注册