[]微信开发工具编译报错
IDE里创建微信小游戏2d示例, 然后加入 matter.js 功能。 PC的 chrome运行没问题, 但是发布到微信开发工具里后编译报错。 麻烦看看怎么回事?
VM168:1 gameThirdScriptError
Cannot read property 'events' of undefined
TypeError: Cannot read property 'events' of undefined
at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29)
at http://127.0.0.1:35024/game/code.js:14:71
at Array.forEach (<anonymous>)
at Object.__init (http://127.0.0.1:35024/game/code.js:14:36)
at http://127.0.0.1:35024/game/code.js:21155:7
at http://127.0.0.1:35024/game/code.js:21156:3
at require (http://127.0.0.1:35024/game/__ ... :14317)
at http://127.0.0.1:35024/game/__ ... 13924
at http://127.0.0.1:35024/game/game.js:4:1
at require (http://127.0.0.1:35024/game/__ ... :14317)
VM168:1 gameThirdScriptError
Cannot read property 'events' of undefined
TypeError: Cannot read property 'events' of undefined
at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29)
at http://127.0.0.1:35024/game/code.js:14:71
at Array.forEach (<anonymous>)
at Object.__init (http://127.0.0.1:35024/game/code.js:14:36)
at http://127.0.0.1:35024/game/code.js:21155:7
at http://127.0.0.1:35024/game/code.js:21156:3
at require (http://127.0.0.1:35024/game/__ ... :14317)
at http://127.0.0.1:35024/game/__ ... 13924
at http://127.0.0.1:35024/game/game.js:4:1
at require (http://127.0.0.1:35024/game/__ ... :14317)
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: