4
votes

I have installed sencha cmd 4.0.4.84. But when i tried to create an App it is showing Unalble to locate framework.dir property from sencha config.Ensure the command was executed from a valid framework direcotry.Non framework directory

5

5 Answers

5
votes

It is exactly what it says: you are most likely running sencha from a wrong directory.

cd /where/you/extracted/ext-4.2.1
sencha generate app MyApp /where/you/want/myapp

For more details watch: Creating Workspace and Applications video.

2
votes

I made a big mistake- i was running from sencha command root. But it has to be running from Extjs version root. we have to create a worklocation inside it. their will extjs folder and from their we need run the command to create the App. Now it is working perfectly

1
votes

You'll want to take a look at the cmd tools and workspaces.

A little more specifically take a look at the framework locations section of the page.

1
votes

It's better to go to the SDK folder just mention the SDK path in your command while generating the app:

sencha -sdk <YOUR SDK PATH> generate app <APP NAME> <PATH TO GENERATE APP>
0
votes
Before creating any sencha app.
Understand 2 things.
1. Sencha CMD
2.Extjs framework.
Both are different.

Coming to point:.
1. Download the latest extjs framework.
2.Use the below command
sencha -sdk=path/to/ext generate app MyAPP path/to/worspace/of/MyApp

This will solve the above issue asked in question.
Danke,
Rahul