[]微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene
引擎使用的是1.7.17beta版本,下面是报错堆栈,附件是工程项目以及导出的小游戏项目。
Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function
Error: Scene: the .lh file root type must be Scene,please use other function to load this file.
at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code.js:81644:10)
at ResInfo.onLoaded (http://127.0.0.1:59022/game/code.js:12995:61)
at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)
at ResInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)
at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)
at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)
at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)
at Loader.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)
at Loader.__proto.endLoad (http://127.0.0.1:59022/game/code.js:12740:8)
at Function.Loader.checkNext (http://127.0.0.1:59022/game/code.js:12769:40)
console.error
errorReport @ WAGame.js:3
thirdErrorReport @ WAGame.js:3
(anonymous) @ WAGame.js:3
c @ WAGame.js:4
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:11
ontimeout @ VM130 timers.js:469
tryOnTimeout @ VM130 timers.js:304
listOnTimeout @ VM130 timers.js:264
Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function
Error: Scene: the .lh file root type must be Scene,please use other function to load this file.
at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code.js:81644:10)
at ResInfo.onLoaded (http://127.0.0.1:59022/game/code.js:12995:61)
at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)
at ResInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)
at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)
at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)
at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)
at Loader.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)
at Loader.__proto.endLoad (http://127.0.0.1:59022/game/code.js:12740:8)
at Function.Loader.checkNext (http://127.0.0.1:59022/game/code.js:12769:40)
console.error
errorReport @ WAGame.js:3
thirdErrorReport @ WAGame.js:3
(anonymous) @ WAGame.js:3
c @ WAGame.js:4
(anonymous) @ WAGame.js:4
function.setTimeout @ gamePage.html:1
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:11
ontimeout @ VM130 timers.js:469
tryOnTimeout @ VM130 timers.js:304
listOnTimeout @ VM130 timers.js:264
没有找到相关结果
已邀请:
4 个回复
Aar0n
赞同来自:
Aar0n
赞同来自:
wky379937316
赞同来自:
Aar0n
赞同来自: