I'm trying to compile a typescript into JavaScript using tsc node package module. First of all, I've installed the module using npm install -g typescript
.
In my local directory I've created a file called classes.js containing a valid typescript code. When running tsc classes.js
I get the following error: Error reading file "./classes.js": File not found
The error doesn't make much sense, since the file exist. Same error is shown when the absolute file path is used. I'm wondering if there is something wrong with tsc module or am I missing something?