Ts-node-dev: misleading error message with '--transpileOnly' after upgrade to 1.0.0

Created on 23 Oct 2020  路  5Comments  路  Source: wclr/ts-node-dev

Issue description

my script was something like this

ts-node-dev --respawn --inspect --transpileOnly ./src/index.ts

after upgrading to 1.0.0 the following error was shown

ts-node-dev: no script to run provided
Usage: ts-node-dev [options] script [arguments]

I had to change --transpileOnly to --transpile-only to have it work again.

A better error message would be nice.

Most helpful comment

It took me an hour before I found the solution. I kept moving my files and hoping that it will find the script. When all I had to do is change --transpileOnly to --transpile-only

All 5 comments

I guess it is already fixed since i am receiving another error (the correct one)
image

This one took me two hours to find.. guess I'm not very smart.

the error message about not finding the script is veryh misleading.

It took me an hour before I found the solution. I kept moving my files and hoping that it will find the script. When all I had to do is change --transpileOnly to --transpile-only

It took me an hour before I found the solution. I kept moving my files and hoping that it will find the script. When all I had to do is change --transpileOnly to --transpile-only

This solved my issue! Thanks @temurih

It took me an hour before I found the solution. I kept moving my files and hoping that it will find the script. When all I had to do is change --transpileOnly to --transpile-only

It worked! Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Derya picture Derya  路  6Comments

timsuchanek picture timsuchanek  路  6Comments

Chnapy picture Chnapy  路  6Comments

quantuminformation picture quantuminformation  路  7Comments

pvtri96 picture pvtri96  路  10Comments