// 用户清理微信缓存后,或者首次使用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属性找不到对应的缓存对象,请尽快修复吧。
