Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typescript how to output logs

Tags:

typescript

I have a problem where my typescript complier is running out of memory and crashing. I want to have a look at what is going on. The documentation says:

--verbose   boolean
Enable verbose logging

However this throws an error on "typescript": "^4.2.4":

tsc --verbose
error TS5023: Unknown compiler option '--verbose'.

Does anyone know how I turn on logging? Thanks

like image 543
userqwert Avatar asked Oct 17 '25 23:10

userqwert


1 Answers

Took me while to figure this out because the error message is super unhelpful. Now they've finally updated the error message to be clearer, and it says that the --verbose flag has to be used with --build. So just run this:

tsc --build --verbose
like image 104
Jesse Kawell Avatar answered Oct 19 '25 12:10

Jesse Kawell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!