Skip to content

Cannot read property 'kind' of undefined using TypeScript 3.9.0 #302

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
pguti778 opened this issue Sep 27, 2020 · 0 comments · Fixed by #303
Closed

Cannot read property 'kind' of undefined using TypeScript 3.9.0 #302

pguti778 opened this issue Sep 27, 2020 · 0 comments · Fixed by #303

Comments

@pguti778
Copy link

pguti778 commented Sep 27, 2020

Environment
"@nativescript/schematics": "^10.1.0",
"typescript": "~3.9.0"
}

Describe the bug
Getting Cannot read property 'kind' of undefined after any ng command for shared project taken from https://docs.nativescript.org/angular/code-sharing/creating-a-new-project

To Reproduce
ng new -c=@nativescript/schematics project-name --shared
ng add @nativescript/schematics
ng g module login

Simple create a module or component with ng g module login and you'll get Cannot read property 'kind' of undefined

Expected behavior
ng g module login
CREATE src/app/login/login.module.ts (191 bytes)
CREATE src/app/login/login.module.tns.ts (270 bytes)
CREATE src/app/login/login.common.ts (177 bytes)

Solution
Change the dependency of typescript to 4.0.3 instead of 3.9.0

  • "typescript": "~3.9.0"
  • "typescript": "~4.0.3"

I'm not sure where this is scaffolded from.

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.

1 participant