[]导出微信小游戏代码报错gameThirdScriptError

(unknown) gameThirdScriptError
Cannot read property 'events' of undefined
TypeError: Cannot read property 'events' of undefined
    at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)
    at http://127.0.0.1:52880/game/code.js:14:71
    at Array.forEach (<anonymous>)
    at Object.__init (http://127.0.0.1:52880/game/code.js:14:36)
    at http://127.0.0.1:52880/game/code.js:21112:7
    at http://127.0.0.1:52880/game/code.js:21113:3
    at require (http://127.0.0.1:52880/game/__ ... :13675)
    at http://127.0.0.1:52880/game/__ ... 13424
    at http://127.0.0.1:52880/game/game.js:2:1
    at require (http://127.0.0.1:52880/game/__ ... :13675)
console.error
上面是错误栈
工程很简单 就是新建的Laya2D工程  代码拷贝的是示例中的牛顿摆 
在本地是可以运行成功的 但是导出小游戏后 微信开发者工具编译就报这个错
求个思路 下面是工程代码
已邀请:

fengzv

赞同来自:

 
err.png

 

要回复问题请先

商务合作
商务合作