Using createProgram outside node environment throws unhelpful exception message #28368
Labels
API
Relates to the public API for TypeScript
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
When running
createProgram
from inside my angular app I'm thrown the 'ts.sys is undefined' error. This error is not helpful since I'm not given the reason for it. It took me a lot of time researching and eventually a question on SO (https://stackoverflow.com/questions/52969177/typescript-createprogram-throwing-ts-sys-is-undefined) to get the answer.A more elaborate error message would've had been of great help.
TypeScript Version: 3.1.3
Search Terms: 'ts.sys is undefined'
Code
Expected behavior:
An exception message explaining I should run this code from node environment or pass my own compiler.
Actual behavior:
Throws 'ts.sys is undefined'
The text was updated successfully, but these errors were encountered: