mrlayeghi
mrlayeghi

Reputation: 113

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.

Upvotes: 1

Views: 381

Answers (1)

CD..
CD..

Reputation: 74096

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.

Upvotes: 0

Related Questions