Typescript error: TSError: x Unable to compile TypeScript…

Install npm install -g ts-node then execute ts-node hello.ts error:

 

Solution:

npm install -D tslib @types/node


Reimplementation: ts-node hello.ts

Read More: