Skip to content
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

Cannot read property 'kind' of undefined using TypeScript ~4.0.2 #324

Open
Damika-Anupama opened this issue Mar 5, 2022 · 1 comment
Open

Comments

@Damika-Anupama
Copy link

Environment
"@angular/cli": "~11.0.4",
"@nativescript/schematics": "^11.2.0",
"typescript": "~4.0.2"

Describe the bug
Getting Cannot read properties of undefined (reading 'kind') after any ng command for the shared project native script and angular-cli

To Reproduce
ng g c login,
ng g m material,
and err with every ng g ... command

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)

What I did
-Initially my global and local angular-CLI versions were mismatched so I changed my global version very close to the local version

@agonper
Copy link
Contributor

agonper commented Apr 8, 2022

@Damika-Anupama, maybe this comes a bit late though. With that version of Angular and schematics you have to use TypeScript 4.1.x to avoid that error

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

No branches or pull requests

2 participants