tody
tody
  • 发布:2023-04-25 14:53
  • 更新:2023-04-25 14:57
  • 阅读:226

vue-cli命令行创建的项目绑定云空间uniCloud后在小程序报错

分类:uni-app

报错内容见以下截图,是什么原因的呢,如何解决?

2023-04-25 14:53 负责人:无 分享
已邀请:
tody

tody (作者) - tody

在H5和app正常,在微信小程序和支付宝小程序都报这个错

tody

tody (作者) - tody

TypeError: I18n is not a constructor
at initVueI18n (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:6611)
at Object../node_modules/@dcloudio/uni-mp-weixin/dist/index.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:7261)
at webpack_require__ (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:6310)
at
webpack_require (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:9267)
at __webpack_require
(runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../src/main.js (main.js?t=wechat&s=1682405215776&v=d4da664102169d27ca62ac93a4574fee:83)
at webpack_require (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at
webpack_exec
(main.js?t=wechat&s=1682405215776&v=d4da664102169d27ca62ac93a4574fee:164)(env: macOS,mp,1.06.2301160; lib: 2.30.3)
(anonymous) @ VM376:9
doWhenAllScriptLoaded @ VM370:1134
scriptLoaded @ VM370:1162
(anonymous) @ VM370:1187
Promise.then (async)
(anonymous) @ VM370:1208
(anonymous) @ VM370:1212
loadScripts @ assubloader.js:1
async function (async)
loadScripts @ assubloader.js:1
loadAppResourceScripts @ assubloader.js:1
(anonymous) @ app-service.js:1
WAServiceMainContext.js?t=wechat&s=1682405215776&v=2.30.3:1 TypeError: I18n is not a constructor
at initVueI18n (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:6611)
at Object../node_modules/@dcloudio/uni-mp-weixin/dist/index.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:7261)
at webpack_require__ (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:6310)
at
webpack_require (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js (vendor.js?t=wechat&s=1682405215776&v=112ef7227c331e1cafc38691d6c510b8:9267)
at __webpack_require
(runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at Object../src/main.js (main.js?t=wechat&s=1682405215776&v=d4da664102169d27ca62ac93a4574fee:83)
at webpack_require (runtime.js?t=wechat&s=1682405215776&v=b3e376f10962e9b7f4921ffdc292301a:25)
at
webpack_exec
(main.js?t=wechat&s=1682405215776&v=d4da664102169d27ca62ac93a4574fee:164)(env: macOS,mp,1.06.2301160; lib: 2.30.3)

tody

tody (作者) - tody

绑定云空间如下图

该问题目前已经被锁定, 无法添加新回复