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
Trailing comma in typescript spread #10769
Comments
Hey @jandolezal71! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
This issue can reproduced in babel 7.0.0. So it's not a regression. |
I believe that this is a bug in TypeScript itself, and I have opened an issue asking which is the correct behavior. |
Thank you Nicolò for processing this request. |
If anyone wants to submit a PR, probably deleting the check for the rest comma from the
If it is the first time that you contribute to Babel, follow these steps: (you need to have
|
@nicolo-ribaudo I will pick this up :) |
Sure! |
Bug Report
Hi,
we have problem with trailing comma in typescript after upgrade to
@babel/core
to7.7.4
.We installed new prettier (https://github.com/prettier/prettier/blob/master/CHANGELOG.md#1182), which was injected trailing comma after rest in type, but
babel-parser
don't like it.tsc
command will not produce any errors, so trailing commas are fine in TS.Cannot be this relevant to "final fix" #10491 ?
Error:
Ts file:
package.json
The text was updated successfully, but these errors were encountered: