Search code examples
javascriptextjssdkframeworks

When i`m trying to run this command 'sencha framework upgrade ext C:\Users\emushkov\bin\Sencha\Cmd\6.5.3.6' a series of errors occur in cmd


`I was given the source files of a project written in Ext JS, and the Readme.md file indicates that I need to execute the following command: 'sencha framework upgrade ext d:\Sencha\SDK\ext-6.5.2'. I tried to do it, but I changed the path to where my Sencha CMD is located. As far as I understand, the framework is downloaded together with CMD, so now the command looks like this: 'sencha framework upgrade ext C:\Users\emushkov\bin\Sencha\Cmd\6.5.3.6.However, I received the following errors:[ERR] Directory C:\Users\emushkov\Desktop\Lising\src\Client\ext not recognized as a framework[INF] Upgrading framework ext[ERR] Cannot satisfy requirements for 'modern'![ERR] The following versions cannot be satisfied:[ERR] elp: modern (No matches!)[ERR] Command must be run from a framework folderI don't understand the following:

  1. Does the framework come bundled with Sencha CMD, or do I need to download it separately?
  2. Why do I need to execute the command 'sencha framework upgrade ext d:\Sencha\SDK\ext-6.5.2' if I already have version 6.5.2 installed locally?First, I tried running this command not from the project directory, but from the framework directory, but I got the following error: 'Command must be run from a workspace folder.' Then I returned to the project directory and received this error: 'Framework ext does not exist, adding to workspace.json.

But it didn't help either and led to the errors I mentioned earlier. I also found on one of the forums that I need to specify the framework path in the file /.sencha/workspace/sencha.cfg, but that didn't help either.`

structure of projects


Solution

  • Frameworks do not come with Sencha CMD (there are many versions), you have to download them manually and save to a local folder. You can have many different versions.

    Whenever a new project is created with Sencha CMD or with npm the framework of your choice will be copied into the ext folder under your project's root directory and files are generated for you project (app.json, build.xml etc.)

    So if you have a project that has an older version of Ext JS embedded in it's ext folder, you need to run upgrade. This will both override files in the ext folder and make other adjustments needed for you project to be compatible with the upgrade version. Always do a full backup before upgrading.