收藏
回答

用户首次使用或者清理缓存后使用 vksession start 报错2000004?

// 用户清理微信缓存后,或者首次使用vk能力调执行下面代码会报错
const ssession = wx.createVKSession({
  track: {
    plane: {mode: 3},
  },
  version: 'v2',
  gl, // WebGLRenderingContext
})
session.start(err => {
  if (!err) session.requestAnimationFrame(onFrame)
})

出现报错信息:

SystemError (appServiceSDKScriptError)
Cannot read properties of undefined (reading 'isSupportARImplType')
TypeError: Cannot read properties of undefined (reading 'isSupportARImplType')
    at wae.isSupport (https://lib/WAServiceMainContext.js:1:2188981)
    at Object.Tae (https://lib/WAServiceMainContext.js:1:2200489)
    at I (https://lib/WAServiceMainContext.js:1:1400147)
    at Object.p (https://lib/WAServiceMainContext.js:1:1402282)
    at Object.p (https://lib/WASubContext.js:1:132988)
    at D.<anonymous> (https://usr/package_player/appservice.app.js:272:6324)
    at s (https://usr/appservice.app.js:361:738)
    at Generator.<anonymous> (https://usr/appservice.app.js:361:2075)
    at Generator.next (https://usr/appservice.app.js:361:1101)
    at asyncGeneratorStep (https://usr/appservice.app.js:329:58)

 (in promise) MiniProgramError

2000004

Number 


明显在用户没有使用过VK相关内容时,微信从缓存访问的isSupportARImplType属性找不到对应的缓存对象,请尽快修复吧。


回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    2025-10-31
    有用
登录 后发表内容