在命令行中使用cocos compile -p web -m release --source-map发布,结果显示成功后。
运行./publish/html5/index.html,浏览器显示黑色背景,报错 Uncaught TypeError: Cannot read property 'style' of null
请问要如何解决呢。
在命令行中使用cocos compile -p web -m release --source-map发布,结果显示成功后。
运行./publish/html5/index.html,浏览器显示黑色背景,报错 Uncaught TypeError: Cannot read property 'style' of null
请问要如何解决呢。
我没编译的时候遇到过这个问题
在project.json文件里,我想不要extension框架了,
// "modules" : "cocos2d","extensions"],
"modules" : "cocos2d"],
这样写是不行的,为什么捏,可能不支持//符号吧
所以要直接这么写
"modules" : "cocos2d"],
你的问题就是框架没找到吧