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
parser: TypeScript: Parse error on abstract class with abstract method and optional methods in abstract/declare classes. #9305
Comments
Hey @armano2! 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 |
@existentialism is it something what we want to support? |
Please, yes. If anything, do it for eslint. |
This only happens when the |
I don't think I'm using that plugin and I'm seeing the same happen. Does that mean eslint adds that? Update: I'm using a preset, and I can't see it being added there either: https://github.com/facebook/metro/blob/master/packages/metro-react-native-babel-preset/src/configs/main.js |
Should be fixed by #9890 |
can confirm its fixed |
Bug Report
Current Behavior
Babel expect that abstract methods must have body, this is not a case for typescript.
This is also issue for optional methods in abstract/declare classes.
Input Code
Expected behavior/code
There should not be any parse errors
Babel Configuration (.babelrc, package.json, cli command)
Environment
parse
The text was updated successfully, but these errors were encountered: