Config file in Typescript
- tsconfig.json file
- This JSON file defines compiler options and project settings.
- Generate file with default template
- make sure you have at least one TS file at your project route first.
- Compile your project after tsconfig JSON file
- Once your project has a tsconfig. JSON file, then you can compile it by simply giving the tsc command.
Getter / Setter Flag
- get set accessor feature is only supported in S5 and higher.You have to manually set a compiler flag in order to compile the code.
- Error:
- Flag in tsconfig.json file
- set noEmitterOnError flag
- run tsc on command line to compile your config file
- now run your js file by using command node src/components/product.js