What is the difference between "--typecheck=try" (the default) and "--typecheck=enable"?
I was reading the --help section for the deploy command and saw this:
It is not clear to me what the "try" means from this description. Testing out both I saw no difference in behavior. The
"Convex Docs AI" aparently also does not have a clue. Is there a documentation for this? I couldn't find any besides this sentence from the --help command
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Yeah some more info there would be helpful - "try" means it will continue if tsc is not available and typechecking can't be performed. Otherwise it's identical to "enable".
https://github.com/get-convex/convex-js/blob/3f46b0a4b174076b6baf01a25df5994f22e97727/src/cli/lib/typecheck.ts#L26-L34