Sencha Cmd Could not find app.dir configuration property from sencha.cfg

I created the sencha touch app using Sencha touch 2.1.0, and now I'm trying to build it using the instructions given here: http://cclerville.blogspot.in/2013/01/sencha-touch-21-phonegap-220-android_3 .html

but the assembly does not work with this error message, can someone help me?

$ sencha app build package && build/myshop/android/cordova/build Sencha Cmd v3.0.2.288 [ERR] Please ensure this command was executed from a valid application directory [ERR] Unable to locate 'app.dir' config property from sencha.cfg 

sencha.cfg inside my Sencha Cmd directory has the following data:

 framework.name=touch framework.version=2.1.0.447 framework.classpath=${framework.dir}/src # This is the minimum required Sencha Cmd version: framework.cmd.minver=3.0.0.141 # This is the current version of the Sencha Cmd at the time of this SDK release: framework.cmd.version=3.0.0.250 
+6
source share
3 answers

It takes a long time for an answer, so it seems to me that the problem is incompatibility, because I created an application using sencha-touch 2.1.0 and its sencha.cfg on /touch/cmd/sencha.cfg instead of / .sencha / app / sencha. cfg in applications 2.1.1, and its contents are completely different from the file 2.1.1 without a link to $ {app.dir} and, therefore, Sencha Cmd cannot use it. Any idea how to create an application 2.1.0? One of the ways I know is to get an older version of sencha Cmd.

+2
source

Like the first error conditions, make sure that you are in the application folder. If yes, then check if your class path is correctly specified in the sencha.cfg file. So, from the root of your application folder, open sencha.cfg:

vim .sencha/app/sencha.cfg

This is what my classpath looks like: app.classpath=${app.dir}/app.js,${app.dir}/app

+1
source

I had the same problem, but an error occurred because I did not call this command from the Sencha ExtJS library directory, I called from another directory where I wanted to create the application. Therefore, if someone has the same problem, call this command from the library folder. for example, I placed ext4.2 in the following location: C:\wamp\www\Ext4.2 On Windows C:\wamp\www\Ext4.2>sencha generate app myapp myapp will create C:\wamp\www\Ext4.2>sencha generate app myapp myapp for me.

0
source

All Articles