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

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

Open Damika-Anupama opened this issue 3 years ago • 1 comments

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

Damika-Anupama avatar Mar 05 '22 02:03 Damika-Anupama

@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

agonper avatar Apr 08 '22 14:04 agonper