收藏
回答

微信新号第一次登录PC端小程序(体验版) 异常 getPermissionBytes()?

比较诡异的一个问题,我新号第一次登录PC端小程序的时候,会抛一个异常。这个异常的源头是https://servicewechat.com/index.js 抛出来的。但是同样的号,第二次再次进入就正常了。有没有大佬遇到过类似问题

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')

    at Object.t.getPermissionBytes (index.js:4:166858)

    at Object.invoke (index.js:4:235079)

    at index.js:4:165239

    at new Promise (<anonymous>)

    at t.fetchPermissionBytes (index.js:4:165196)

    at index.js:4:242622

    at index.js:4:130473

index.js:4 global.Object already protected.

index.js:4 doNotWriteObj cost: 6 ms.

index.js:4 deepFreeze globals: Array(85)

index.js:4 deepFreeze cost: 0 ms.



以下是正常的调试信息

PC Adapter: 2.0.6-game-wmpf, 2023.4.25 21:1:10
VM144:1 Wechat Lib:2.29.2, 2023.4.10 16:56:19
index.js:4 global.Object already protected.
index.js:4 doNotWriteObj cost: 5 ms.
index.js:4 deepFreeze globals: Array(85)
index.js:4 deepFreeze cost: 0 ms.
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2023-06-05

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2023-06-05
    有用
    回复
登录 后发表内容