Closed jlchmura closed 2 months ago
That's interesting. The error stems from TS generating the error subclass with error constructor code (which is not necessary, see RecognitionException
which also derives from Error
without this trouble). I guess the difference comes from the way this error is defined (as static class expression). I'll change that to isolated classes in the next release.
For now just remove this constructor manually from the d.ts file, or set "skipLibCheck" to true in your tsconfig.ts file.
ErrorOptions in the es2022 lib, take a look at the target property in your tsconfig.json
After upgrading to v3.0.3, I'm getting a TS error in
ParseTreePatternMatcher.d.ts
: