You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot read property 'kind' of undefined using TypeScript ~4.0.2 #324
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
Activity
agonper commentedon 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