Skip to content
Discussion options

You must be logged in to vote

Ah, sorry, I misunderstood. I missed that you were using the addDiagnostic feature to add custom errors.

Unfortunately, that's a part of a known issue. While the feature works correctly, it was built to work with the standard emitFilesAndReportErrors (iirc) function which tsc and most others that use the compiler API use for emit.

Some libraries do some custom magic and use other means, which means our diagnostics utils aren't able to inject into the arrays produced by those methods.

The upcoming new major version of tsp will have a a more robust and higher insertion point to ensure that we can tap into diagnostics no matter where they're created.

In the mean time, it may be possible to w…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Isqanderm
Comment options

@nonara
Comment options

Answer selected by nonara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants