Cannot find name 'module'
amitbalecha opened this issue · 1 comments
amitbalecha commented
Getting 'Cannot find name 'module' with all components while compiling. Though i have installed @types/nodeand then added
node` to the types field in tsconfig.
src/app/app.component.ts(24,15): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try npm i @types/node
and then add node
to the types field in your tsconfig.
src/app/entities/author/author-detail.component.ts(19,15): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try npm i @types/node
and then add node
to the types field in your tsconfig.
amitbalecha commented
types field of tsconfig was overwritten by tsconfig.app types field .fixed it