[]微信小游戏运行导出项目的时候报错: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
已邀请:

Aar0n

赞同来自:

问题已解决

Aar0n

赞同来自:

报错已经给你提示了,换一种加载方法读取这个文件,把相关代码贴一下看看,能直接解决的就别直接发项目。

wky379937316

赞同来自:

需要换哪个方法?在layaairIDE里面运行是好的

Aar0n

赞同来自:

你给我的无法运行,缺少配置

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作