-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
@babel/parser does not parse non-null members named 'readonly' in TypeScript #9571
Comments
Hey @elevatebart! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I forgot to add the call stack
I hope it helps |
I managed to track the bug back to this function
It parses out the modifier before having a token to modify. Should I try preventing this in a PR ? |
Actually, I would say that the bang should be added to this list babel/packages/babel-parser/src/plugins/typescript.js Lines 77 to 91 in 2817844
|
Bug Report
Current Behavior
When I use
@pabel/parser
with the following code:I get
SyntaxError: Unexpected Token
Expected behavior/code
I expect
readonly
to be the name of my propertyBabel Configuration (.babelrc, package.json, cli command)
Environment
Additional context/Screenshots
This was found investgating this bug.
vue-styleguidist/vue-styleguidist#281
The text was updated successfully, but these errors were encountered: