Currently, I am working on a project using angular-CLI. When I attempted to create a new module yesterday, an error popped up in the terminal saying
Cannot read properties of undefined (reading 'kind')
(only this error there wasn't any other explanations)
After that, I noticed that the same error occurs when trying to create new components with Angular. Surprisingly, there are no issues with the ng serve
command, which works perfectly fine.
I would appreciate it if someone could assist me in resolving this issue. I will provide some files below, but feel free to ask for more details by commenting as I am struggling to pinpoint the problem. Thank you in advance!
package.json
{
"name": "chess-cabin-front",
"version": "0.0.0",
...
}
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
...
}