-
Notifications
You must be signed in to change notification settings - Fork 129
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
Please dont lock the @babel/parser version #141
Comments
@cncolder, I was having problems with this as well, so I updated my fork of this project to update/unpin the dependencies. Maybe it'll be useful for you too until/unless this project updates as well. (https://github.com/IanVS/prettier-plugin-sort-imports) |
Hi. Thank you for your fix. I use pnpm so I override the dep version in package.json. {
"pnpm": {
"overrides": {
"@trivago/prettier-plugin-sort-imports>@babel/parser": "7.17.3"
}
}
} |
As @cncolder has mentioned we need to update the babel parser version. In general you can add the following to your package.json and all instances in your dependency tree will be updated. Due to some bug with `npm´ this only works for the newest versions of released 8 days ago. see: npm npm/cli#4232
|
This is really not usual to lock version at the package level and ask projects to use overide. |
Is this going to be fixed? |
Bump |
Your Environment
Describe the bug
Cannot format typescript type-only importing.
To Reproduce
Expected behavior
This happened because we use an old
@babel/parser: 7.14.6
. See https://babeljs.io/blog/2021/10/29/7.16.0Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: