Closed ankopein closed 3 years ago
Can you share a repo that demonstrates the issue? I just created a whole new project, installed the versions that you state and copied your code and it's all good.
Thanks for your quick response! I added you to a repo showing a minimal complete example. npm run startimmediately
works, npm start
does not.
I think it's the way you are running tsc
. Remove the files:
"prestart": "tsc"
tsc will compile all ts files. If you want to specify which ones you want to compile then set it up in tsconfig.json
I think that if you specify the files like that it might ignore the tsconfig.json in the root of the project.
You're right, thanks!
Versions:
I'm trying to specify a very simple cmd-line with 3 required args (2 strings, a bool and an optional bool (help)), but it fails to compile with
tsc
. I have no idea why, since I tried to stick with the README info. Is this a bug, or just incorrect usage? If its the 2nd, can you provide some explaination and please correct me? Thanks.