I'm trying to make a backend project for my angular frontend in my monorepo, but I get an error when using the "nest new backendproject --strict" command:
SyntaxError: Unexpected token '('
at wrapSafe (internal/modules/cjs/loader.js:1116:16)
at Module._compile (internal/modules/cjs/loader.js:1164:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.<anonymous> (C:\Users\ycrbo\AppData\Roaming\npm\node_modules\@nestjs\cli\node_modules\glob\node_modules\minimatch\dist\cjs\index.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
I tried uninstalling and installing nestjs and node, as that was what's given as a solution, but that didn't work. I also have the latest versions. I also tried another solution on stackoverflow, where the babel config was edited, but that didn't work either.
nx g @nx/nest:app backendproject