jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
479 stars 138 forks source link

Cannot find name 'module' #78

Closed amitbalecha closed 5 years ago

amitbalecha commented 5 years ago

Getting 'Cannot find name 'module' with all components while compiling. Though i have installed @types/nodeand then addednode` 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 5 years ago

types field of tsconfig was overwritten by tsconfig.app types field .fixed it