Answers for "cannot find name 'require'"

2

cannot find name 'require'

npm install @types/node --save-dev
Posted by: Guest on January-13-2021
0

angular Cannot find name 'require'.

// Angular:
npm install @types/node --save-dev

// in tsconfig.app.js
 "compilerOptions": {
	...
    "typeRoots": [ "../node_modules/@types" ],
    "types": ["node"]
	...
  }
Posted by: Guest on July-08-2021

Code answers related to "cannot find name 'require'"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language