We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I just tried using antlr4ts for the first time... and got the following error:
ERROR TypeError: Class constructor Lexer cannot be invoked without 'new'
This occurs at the time I attempt to create the Lexer for my DSL.
Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered:
It may related to your tsconfig.json, try use es6 as your compile target
tsconfig.json
es6
{ "compilerOptions": { "target": "es6", } }
Sorry, something went wrong.
Thanks. This worked.
@lujun2 This project uses es2015 as the target. Do you know which targets I should expect to work and which ones not?
es2015
It seem it does not work with es5 target (sadly, as it's still default target for many projects)
es5
No branches or pull requests
I just tried using antlr4ts for the first time... and got the following error:
ERROR TypeError: Class constructor Lexer cannot be invoked without 'new'
This occurs at the time I attempt to create the Lexer for my DSL.
Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: