微信小游戏无法正确显示内容

我按照官方文 http://docs.cocos.com/creator/manual/zh/publish/publish-wechatgame.html 进行操作,但是无法正确显示游戏界面,以下是报错的日志,大神们帮忙看看是什么原因

WAGame.js:11 Wechat Lib:1.8.0, 2017.12.22 16:03:55
cocos2d-js-min.2bee2.js:1 1.8.0
cocos2d-js-min.2bee2.js:1 Create unpacker 04e20d31c for 0aaqlNrdRLDpfRXhnzjTof
gamePage.html:1 Thu Jan 11 2018 15:30:17 GMT+0800 (中国标准时间) 配置中关闭 请求域名、业务域名、TLS 版本以及 HTTPS 证书检查
gamePage.html:1 工具未校验请求域名、业务域名、TLS 版本以及 HTTPS 证书。
d @ gamePage.html:1
createDownloadTask @ gamePage.html:1
invoke @ gamePage.html:1
r @ WAGame.js:4
c @ WAGame.js:4
o @ WAGame.js:6
e @ WAGame.js:6
a @ WAGame.js:6
(anonymous) @ WAGame.js:8
downloadRemoteFile @ wx-downloader.js? [sm]:201
fail @ wx-downloader.js? [sm]:191
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
ontimeout @ timers.js:469
tryOnTimeout @ timers.js:304
listOnTimeout @ timers.js:264
cocos2d-js-min.2bee2.js:1 Create unpacker 0c31f94d8 for 85I+InxHtFuqiYB5IawJ+w
cocos2d-js-min.2bee2.js:1 Create unpacker 09992f165 for 7a6LDUXs5Oq7dzrzClz6Jn
cocos2d-js-min.2bee2.js:1 Create unpacker 02ce7f889 for a5TFY9/gFDGalKywNgUHzx
cocos2d-js-min.2bee2.js:1 Create unpacker 080e56cbc for 1cyTSP5ZNOdIPAYdin1GmG
cocos2d-js-min.2bee2.js:1 LoadScene 0aaqlNrdRLDpfRXhnzjTof: 694.823974609375ms
main.88847.js? [sm]:135 Success to load scene: db://assets/Scene/startScene.fire
WAGame.js:3 gameThirdScriptError
Failed to executed ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’.;at setTimeout callback function
TypeError: Failed to executed ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’.
at t.value (http://127.0.0.1:9973/game/libs/weapp-adapter-min.js:162:38)
at new x (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:1572446)
at Object.new (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:1575008)
at Object.showStats (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:749712)
at e.setDisplayStats (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:155931)
at e.onLoad (http://127.0.0.1:9973/game/src/project.e76af.js:545:21)
at 146.f (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:534804)
at e._invoke (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:266146)
at e.invoke (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:267415)
at e.activateNode (http://127.0.0.1:9973/game/cocos2d-js-min.2bee2.js:1:536496)
errorReport @ WAGame.js:3
thirdErrorReport @ WAGame.js:3
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:5
ontimeout @ timers.js:469
tryOnTimeout @ timers.js:304
listOnTimeout @ timers.js:264

自己回复一下,顶一下,@panda大神@jare大神,帮忙看看

微信小程序开发工具应该是最新的了

看调用栈就好了,你的 onLoad 中调用 setDisplayStats,显示帧率等信息,但是这些信息是使用 DOM 方式渲染的,不兼容微信小游戏环境,所以报错。去掉这句代码就好了

多谢,确实是这个问题,不太清楚cocos里面和小游戏里面的不兼容api,有什么地方可以查看么