Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error TS2380 in CommonToken.d.ts #98

Closed
abelykh0 opened this issue Nov 15, 2024 · 3 comments
Closed

Error TS2380 in CommonToken.d.ts #98

abelykh0 opened this issue Nov 15, 2024 · 3 comments
Labels
possible-bug Could be a bug

Comments

@abelykh0
Copy link

Getting this error when building:
error: [1] /node_modules/antlr4ng/dist/CommonToken.d.ts(86,9): error TS2380: The return type of a 'get' accessor must be assignable to its 'set' accessor type
https://github.com/mike-lischke/antlr4ng/blob/main/src/CommonToken.ts#L194
https://github.com/mike-lischke/antlr4ng/blob/main/src/CommonToken.ts#L212

@mike-lischke
Copy link
Owner

TS version?

@mike-lischke mike-lischke added the possible-bug Could be a bug label Nov 15, 2024
@abelykh0
Copy link
Author

TS version?

I assume 4.6.2.

This is what I am getting from build (build is complex and involves a lot of other things):
[0] ts-loader: Using [email protected]. This version may or may not be compatible with ts-loader.

@mike-lischke
Copy link
Owner

mike-lischke commented Nov 16, 2024

Please upgrade to 5.1 or newer (this condition has been relaxed in this PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug Could be a bug
Projects
None yet
Development

No branches or pull requests

2 participants