升级到最新版本开发工具后, 小游戏编译启动时,报错:
"TypeError: Illegal invocation
at Object.define (extensions::safeMethods:20:22)
at extensions::guestViewContainerElement:68:28
at registerInternalElement (extensions::guestViewContainerElement:37:28)
at listener (extensions::guestViewContainerElement:27:5)"
具体应该是在注册这些时报错:
"appviewbrowserplugin"
"extensionoptionsbrowserplugin"
"extensionviewbrowserplugin"
"webviewbrowserplugin"
==请问大家、由遇到么? 怎么解决?
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
好的,已反馈技术排查,有进展会同步。
在开发工具上调用 wx.cloud.init 出现同样错误提示,但是不影响后续的云函数调用。
Uncaught TypeError: Illegal invocation
at Object.define (VM4510 extensions::safeMethods:20)
at VM4509 extensions::guestViewContainerElement:68
at registerInternalElement (VM4509 extensions::guestViewContainerElement:37)
at listener (VM4509 extensions::guestViewContainerElement:27)
VM51 extensions::safeMethods:20 Uncaught TypeError: Illegal invocation
at Object.define (VM51 extensions::safeMethods:20)
at VM50 extensions::guestViewContainerElement:68
at registerInternalElement (VM50 extensions::guestViewContainerElement:37)
at listener (VM50 extensions::guestViewContainerElement:27)
(anonymous) @ VM51 extensions::safeMethods:20
(anonymous) @ VM50 extensions::guestViewContainerElement:68
registerInternalElement @ VM50 extensions::guestViewContainerElement:37
listener @ VM50 extensions::guestViewContainerElement:27
我的是这样的