1.刚导进来的项目,编译发现报错
Unreachable code detected.
找不到 Egret Engine 3.0.3 请打开引擎面板并添加对应版本的引擎
解决方案:在egretengine中添加一个3.0.3的版本 特别方便 (下载完成后,直接拖入)
3.
编译错误
/Users/mars_macpro/god_evil_human/client/hello/项目所需egret版本3.0.3不存在
您正在使用的引擎版本为 3.0.3
正在编译项目...
src/app/first_view/control.ts(6,7): error TS2300: Duplicate identifier 'test_control'.
src/test/test_control.ts(6,7): error TS2300: Duplicate identifier 'test_control'.
原因:应该是命名规则相同了(关于规则看看架构是怎么规定的)
解决方案:first_view下的"control.js"文件名字换成 “first_view_view.js” 就可以了
4.
Warning #3201: RES加载了不存在或空的资源组:"first_view"
control.js:127 Group:first_view has failed to load
问题:用TextureMegre导出文件,放入项目的resources文件下,运行游戏,在浏览器中输出的错误
解决:资源组在架构里 直接用了模块的名字 所以不能随便起名字,如果起名字跟模块的名字不一样,请在模块内定义资源组的名字。