Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 494966

Cannot read property 'canvasId' of undefined;

$
0
0

使用的Creator1.9.1版本,在浏览器调试的时候没有问题,可是在构建微信小游戏,运行时出错了,日志如下:
WAGame.js:3 gameThirdScriptError
Cannot read property 'canvasId' of undefined;at setTimeout callback function
TypeError: Cannot read property 'canvasId' of undefined
at WebGLRenderingContext.e.(anonymous function) as texImage2D
at e.216.s.once.u._setImage (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:739186)
at e.216.s.once.u.update (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:738556)
at e.216.s.once.u.handleLoadedTexture (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:740528)
at 128.ccsg.Label.WebGLRenderCmd.127.t.updateTexture (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:500624)
at 128.ccsg.Label.WebGLRenderCmd.127.t.bakeLabel (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:498616)
at e._updateLabel (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:480121)
at e.getContentSize (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:480522)
at e._setDimensions (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:484422)
at e.setContentSize (http://127.0.0.1:53995/game/cocos2d-js-min.2f986.js:1:479319)

找了很久没有找到解决方法,不知道哪位大神可以帮助一下?非常感激。


Viewing all articles
Browse latest Browse all 494966

Trending Articles