jackdaw
jackdaw

Reputation: 2314

Typescript how to output logs

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

Upvotes: 4

Views: 5420

Answers (1)

Jesse Kawell
Jesse Kawell

Reputation: 115

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

Upvotes: 3

Related Questions