简体   繁体   中英

how to create view with sencha cmd in package not in app

I have an app and many package that required with app, and I will create a view with

sencha gen view viewname

in package, but raise following error :

[ERR] Please ensure this command was executed from a valid application directory

[ERR] Unable to locate 'app.dir' config property from sencha.cfg

please help me how to resolve this problem.

According to the documentation that is not possible:

sencha generate view

This command generates a new View class and adds it to the current application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM