nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Asterisk in package.json version raises Cannot read property of null (reading 'filter')

Open jkatins opened this issue 2 years ago • 0 comments

Environment

  • CLI: 8.6.3

Describe the bug When changing the @nativescript/android version in package.json to * the project can't be built anymore.

To Reproduce

  • ns create TestApp --vue
  • cd TestApp
  • npm install --save-dev @nativescript/android
  • ns doctor android < all good here
  • Open package.json and change
    "devDependencies": {
      "@nativescript/android": "^8.6.2",
    
    to
    "devDependencies": {
      "@nativescript/android": "*",
    
  • Running any command like ns doctor android or ns build android fails with
    Cannot read property of null (reading 'filter')
    

Expected behavior The project should still build.

jkatins avatar Jan 09 '24 15:01 jkatins