Angular Issue – error TS2591: Cannot find name ‘module’.

It takes me a lot of time to fix it. Thanks to https://fireflysemantics.medium.com/adding-types-node-to-angular-84a629976c86 for the solution below:

Approach

npm i -S @types/node

Then in tsconfig.json

"angularCompilerOptions": {
"types" : ["node"]
....
}
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment