1***@qq.com
1***@qq.com
  • 发布:2023-11-14 09:00
  • 更新:2023-11-20 20:57
  • 阅读:2477

【报Bug】使用支付宝小程序云,用hbuilder x 运行及打包,报错:Uncaught Error: spaceAppId required

分类:uniCloud

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 版本 Windows 10 专业版 版本号 22H2 安装日期 ‎2023/‎9/‎21 操作系统内部版本 19045.3570 体验 Windows Feature Experience Pack 1000.19052.1000.0

HBuilderX版本号: 3.97

操作步骤:

对uni-starter进行修改,关联支付宝小程序云服务空间

预期结果:

正常运行

实际结果:

报错:
08:52:15.444 You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
08:52:15.721 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught Error: spaceAppId required
at (app-service.js:2008:17)
at Ot (app-service.js:2006:59)
at init (app-service.js:2073:16)
at init (app-service.js:3068:15)
at getInstance (app-service.js:41629:44)
at (app-service.js:41738:10)
at (app-service.js:41761:3)
08:52:15.996 [warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp.
08:52:16.044 [Vue warn]: Failed to resolve component: refreshBox
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <ListpageId=1pagePath="pages/list/list"pageQuery={}>
08:52:16.639 [Vue warn]: Unhandled error during execution of onShow
at <List
pageId=1pagePath="pages/list/list"pageQuery={}>
08:52:16.818 [warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp.
08:52:16.825 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property '$vm' of undefined
08:52:16.834 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property '$vm' of undefined
at (app-service.js:16675:16)

bug描述:

APP源码基于uni-starter进行的二次开发,直接拉取uni-starter源码可以正常运行,经过一段时间二次开发后,运行报错:
08:52:15.444 You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
08:52:15.721 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught Error: spaceAppId required
at (app-service.js:2008:17)
at Ot (app-service.js:2006:59)
at init (app-service.js:2073:16)
at init (app-service.js:3068:15)
at getInstance (app-service.js:41629:44)
at (app-service.js:41738:10)
at (app-service.js:41761:3)
08:52:15.996 [warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp.
08:52:16.044 [Vue warn]: Failed to resolve component: refreshBox
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <ListpageId=1pagePath="pages/list/list"pageQuery={}>
08:52:16.639 [Vue warn]: Unhandled error during execution of onShow
at <List
pageId=1pagePath="pages/list/list"pageQuery={}>
08:52:16.818 [warn]: getApp() failed. Learn more: https://uniapp.dcloud.io/collocation/frame/window?id=getapp.
08:52:16.825 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property '$vm' of undefined
08:52:16.834 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property '$vm' of undefined
at (app-service.js:16675:16)

2023-11-14 09:00 负责人:无 分享
已邀请:

最佳回复

DCloud

DCloud

HBuilderX 3.98.2023112011-alpha 已修复。

1***@qq.com

1***@qq.com (作者)

问题暂时解决了,把uni统计关闭就好了

要回复问题请先登录注册