Encountering an issue while trying to create a new module in NestJS using the Nest CLI. The same error occurs when attempting to generate any type of nest schematic. Any insight into what may be causing this would be greatly appreciated.
This is happening on a machine running Windows 10.
The command I used was -
nest g module <module-name>
. The error also arises with commands like nest g controller <controller-name>
.
The error message received is as follows -
> nest g module task
Error: Cannot read properties of undefined (reading 'properties')
Failed to execute command: node @nestjs/schematics:module --name=task --no-dry-run --no-skip-import --language="ts" --source-root="src" --spec --no-flat --spec-file-suffix="spec"