小游戏构建出错,求大神解答一下

微信开发者工具第一次打开可以正常运行,刷新后就报Cannot read property ‘getExtension’ of null;
Cannot read property ‘getParameter’ of null;at setTimeout callback function
TypeError: Cannot read property ‘getParameter’ of null

1赞

没人回答吗 ?????????????

楼主找到解决的办法了吗?

找到了一个迂回的办法,当出现报错后关闭微信开发者工具,在cocos点击运行,不要在开发者工具中重新编译。

1赞

什么意思? 就是直接在构建之后直接在Cocos选择运行?而不能在微信开发者工具种选择对应目录的运行方式?

对的,用微信开发者工具会报错,我也不知为什么

好吧 谢谢楼主了

请问楼主有找到更好的办法吗