Skip to content

Running doctor returns error "Cannot read property 'filter' of null" #5366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nevardreik opened this issue Sep 4, 2020 · 6 comments Β· Fixed by #5374
Closed

Running doctor returns error "Cannot read property 'filter' of null" #5366

nevardreik opened this issue Sep 4, 2020 · 6 comments Β· Fixed by #5374
Assignees

Comments

@nevardreik
Copy link

Environment

  • CLI: 7.0.4
  • Android Runtime: 7.0.0
  • iOS Runtime: 7.0.0

Describe the bug
When running ns doctor the following error occurs.

 [email protected] πŸ’€  > ~/develop/mobile > ns doctor
βœ– Getting environment information 

Cannot read property 'filter' of null

To Reproduce

Expected behavior
Command should run successfully and advise why my app is probably not working πŸ˜…

@rigor789
Copy link
Member

rigor789 commented Sep 4, 2020

Can you share the folder structure of ~/develop/mobile?

@rigor789 rigor789 self-assigned this Sep 4, 2020
@nevardreik
Copy link
Author

Sure - at a high level:

mobile
|- app
  |- App_Resources
  |- main.ts
  |- app.module.ts
  |- app.component.ts
  |- app.component.html
  |- app.scss
|- nativescript.config.ts
|- package.json
|- package-lock.json
|- tsconfig.json
|- tsconfig.esm.json
|- tsconfig.tns.json
|- webpack.config.json
--

@rigor789
Copy link
Member

rigor789 commented Sep 4, 2020

Ok, that looks normal - contents of package.json? Perhaps if you could share the project (you can send the zip to [email protected]) I could debug it easier!

@nevardreik
Copy link
Author

Hey Igor, I've sent you an email with details to sample project. Thanks!

@rigor789
Copy link
Member

rigor789 commented Sep 6, 2020

@nevardreik Thanks - I was able to track down the issue, and released a fix to @nativescript/doctor - the main cause was the ~7.0.0 version in the package.json for the android runtime - semver.valid throws on ranges - but that should be fixed now.

The latest master with this change has been auto-released as 7.0.6-2020-09-06-123725-14246 but I will be releasing a patch version today/tomorrow with other fixes I do.

@nevardreik
Copy link
Author

Nice one, thank you @rigor789!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants