2.0.5升级2.0.7构建报错:
Cannot read property ‘getHtmlElementObj’ of undefined;at requestAnimationFrame callback function
TypeError: Cannot read property ‘getHtmlElementObj’ of undefined
at Object.draw (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:371657)
at r._commitComp (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:366718)
at v.133.g._render (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444413)
at v.133.g._color (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444117)
at v.133.g._updateRenderData (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444354)
at v.133.g._worldTransform (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:443995)
at v.133.g._localTransform (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:443529)
at v.133.g._children (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444908)
at v.133.g._render (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444467)
at v.133.g._color (http://127.0.0.1:19144/game/tetris_subdomain/cocos2d-js-min.js:1:444117)
看出来是你的工程报错,麻烦提供下复现的demo。
2.0.7微信子域中 Label使用了BMFont 就会报这个错
是因为不支持BMFont?
我也遇到这个问题了,请问解决了吗
我查了,是子域使用了 艺术字原因。请问要怎么解决?
2.0.5都可以使用艺术字的。