简体   繁体   中英

Unable to locate framework.dir in sencha

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

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.

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

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.

最好转到SDK文件夹,只需在生成应用程序时在命令中提及SDK路径:

sencha -sdk <YOUR SDK PATH> generate app <APP NAME> <PATH TO GENERATE APP>
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

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