PDA

View Full Version : Error: Cannot satisfy requirements for "modern"



pthach
26 Oct 2017, 3:50 PM
Getting "Cannot satisfy requirements for "modern" error after running `npm start`.

Repro(s)

rm -rf node_modules/@extjs
npm install
npm start





ERROR in [@extjs/reactor-webpack-plugin]: Error: Cannot satisfy requirements for "modern"!
The following versions cannot be satisfied:
null: modern (No matches!)


BUILD FAILED
com.sencha.exceptions.BasicException: com.sencha.exceptions.ExVersion: Cannot resolve package requirements

pthach
27 Oct 2017, 9:06 AM
This issue could be related to the NPM registry errors happening earlier this week. Upgrading ExtReact to 6.5.2 seems to fix it.


In package.json, change "@extjs/ext-react": "^6.5.1" to "@extjs/ext-react": "^6.5.2" then run `npm update`

tristan.lee
31 Oct 2017, 6:57 AM
That's a strange "fix" because ^6.5.1 should have installed @extjs/ext-reactor 6.5.2. At least it does for me.

npm view @extjs/ext-react version >> 6.5.2

mymislife
1 Nov 2017, 4:07 AM
tristan.lee (https://www.sencha.com/forum/member.php?749915-tristan-lee) I face the same issue too.

tristan.lee
6 Nov 2017, 12:14 PM
After removing node_modules and doing an npm install, does it not resolve the issue? I've not been able to replicate this.