2

trying to refresh my sencha extjs app and always get this error:

Commands:

sencha app refresh
sencha app upgrade

Always the same error:

[ERR] Cannot satisfy requirements for "ext"!
[ERR]    The following versions cannot be satisfied:
[ERR]       root: ext@5.1.1.451 (No matches!)
[ERR] Cannot resolve package requirements

What can I do?

Sencha Cmd: v6.1.3.42 (with last version 6.2.0 I get this error too)
Core Version 5.0.0
Extjs Version 5.1.1.451

Thanks in advance

user2075861
  • 117
  • 2
  • 15
  • This is happening because you installed Sencha latest version sometimes ago and then you using previous version of sencha to build or refresh. Check which version of sencha is installed in your system ? – UDID Sep 21 '16 at 09:07
  • Thanks. But what can I do now? I made an upgrade:
    Sencha Cmd v6.2.0.103 [ERR] Cannot satisfy requirements for "ext"! [ERR] The following versions cannot be satisfied: [ERR] root: ext@5.1.3.228 (No matches!) [ERR] Cannot resolve package requirements
    Always the same error.
    – user2075861 Sep 21 '16 at 09:14
  • Which version are you using for your app ? – UDID Sep 21 '16 at 09:16
  • As you can see in the previous message, now 6.2.0.103 for the cmd and 5.1.1.451 for extjs – user2075861 Sep 21 '16 at 09:18
  • Ext library is missing it seems. Do one thing go to this folder YourApp\.sencha\workspace\sencha.cfg and in that 2nd last line ext.dir give the path of Ext5.1.1.451. You must have Ext5.1 in your system. do that. – UDID Sep 21 '16 at 09:29
  • Also can you tell me what is the path given at `ext.dir` over there – UDID Sep 21 '16 at 09:30
  • ..\Documents\src\PrimeNote2\web\PN2\ext – user2075861 Sep 21 '16 at 09:41
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/123845/discussion-between-udid-and-user2075861). – UDID Sep 21 '16 at 09:44
  • In my cfg dir is not setted : – user2075861 Sep 21 '16 at 09:45

2 Answers2

4

This error is occurring because your app is not getting path for ext directory and therefore you are getting error like

[ERR] Cannot satisfy requirements for "ext"! [ERR] Cannot resolve package requirements

to resolve this open this file YourApp\.sencha\workspace\sencha.cfg in your app and in this config file give the path of your ext.dir example : ext.dir=${workspace.dir}/../../../../Ext6.0.3

In case if you don't have ext then you can download from this link.Sencha

UDID
  • 2,350
  • 3
  • 16
  • 31
1

With Sencha CMD 6.1 and up, if you want to use the 'app upgrade', you need to configure your framework first. I can't say for sure this will work with ExtJS 5, but it worked for going from 6.

https://twasink.net/2016/09/20/upgrading-to-extjs-6-2/ (see Step 1)

Robert Watkins
  • 2,196
  • 15
  • 17