Generate a sencha touch app

后端 未结 7 911
-上瘾入骨i
-上瘾入骨i 2020-12-06 07:47

I am trying to create a new sencha touch app using \"sencha generate app MyApp ../MyApp\" command on Windows.

I have done the following :

Do

相关标签:
7条回答
  • 2020-12-06 07:57

    This is because, you are using the older version of SenchaCMD. This can happen because of two reasons.

    Reason 1

    You installed SenchaCmd first and SenchaSDK second. This may override the latest version of SenchaCmd with older version, which is shipped with SenchaSDK.

    Solution

    Install SenchaSDK first and SenchaCmd last.

    Reason 2

    The path of SenchaCmd set on environment variable may be wrong. Please check this.

    As TDeBailleul said, you don't need SenchaSDK for the latest version of SenchaTouch. Just use SenchaCmd only.

    0 讨论(0)
  • 2020-12-06 07:58

    Try this...

    Make sure three things..

    1. Sencha touch installed path.
    2. Application generating keyword
    3. Where you going to save your Sencha touch project.

    Lets create a project.

    • Open a command prompt
    • Type your Sencha touch sdk installed path. (For me: C:\inetpub\wwwroot\touch-2.3.1)
    • And type sencha generate app MyApp. here MyApp is our project name.
    • Then type the path where you going to save your project MyApp(For me: C:\inetpub\wwwroot\Poonguti\MyApp ).
    • press Enter.
    • Now, I hope you create a Sencha touch project.

    here is an attached screen shot.screen shot

    0 讨论(0)
  • 2020-12-06 08:03

    I had the same issue. Finally, the problem was that I was using an old version of the sdk...

    I would recenment to un installed version 2.0 and download and installed version 3.0.

    Download Link

    0 讨论(0)
  • 2020-12-06 08:09

    my SDK is where i extracted my ExtJS files.
    ~/current/gaia/static/js/ext-5.1.1

    you can generate workspace from within the folder like this:
    sencha generate workspace /tmp/extJSworkSpace
    or
    you can specify it's location if you are not in the folder.
    sencha -sdk ~/current/gaia/static/js/ext-5.1.1 generate workspace /tmp/extJSworkSpace

    contents of the SDK folder looks like:

    ls ~/current/gaia/static/js/ext-5.1.1  
    build cmd ext-bootstrap.js LICENSE overrides packages Readme.md src      version.properties build.xml examples index.html licenses package.json plugins release-notes.html test welcome
    

    if you don't specify -sdk flag and are not inside the folder, it will create the workspace still but there will be no 'ext' folder inside (not copied).

    hope this helps.

    0 讨论(0)
  • 2020-12-06 08:13

    Try navigating to the path where your sencha cmd got installed instead of sencha sdk folder

    1. Open command propmt
    2. cd C:\..\bin\Sencha\Cmd\4.0.2.67
    3. Then type sencha and then press enter

    You should get something like Sencha Cmd V4.0.2.67

    0 讨论(0)
  • 2020-12-06 08:14

    I had the same problem and finally figured that Sencha Touch 2.1 is not longer using Sencha SDK Tools but using Sencha Command instead.

    You can find more here :

    http://docs.sencha.com/touch/2-1/#/guide/command

    and here

    http://docs.sencha.com/touch/2-1/#!/guide/command_app-section-2

    Hope this helped

    0 讨论(0)
提交回复
热议问题