Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ...EUIExample/src/Main.ts (39,36): Cannot find name 'components'. #16

Open
huyong007 opened this issue Oct 10, 2019 · 2 comments
Open

Comments

@huyong007
Copy link

huyong007 commented Oct 10, 2019

bash-3.2$ egret build EUIExample -e
您正在使用白鹭编译器 5.2.29 版本
扫描项目列表
Error /Users/yonghu/all/luochen/work/egret-examples/EUIExample/src/Main.ts (39,36): Cannot find name 'components'.

请问如上问题是如何造成的,如何解决呢?

@VanJunming
Copy link

看rc/2.5分支,master分支丢失了一个MainGroup.d.ts文件
直接把src/Main.ts:39

var group: eui.Group = new components.MainGroup();

改为

var group: eui.Group = new eui.Group();

@zxiaox
Copy link

zxiaox commented Feb 22, 2023

请在 Main.ts 最上面 加上如下代码声明
declare module components { export class MainGroup extends eui.Group { } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants