-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
[error] Couldn't resolve parser "sh".
when upgrading to Prettier 3.1.0
#310
Comments
I'll take a look. |
Not bug. Missed |
|
@fisker But it seems a regression, what means config resolution changed. |
Maybe a bug was fixed accidentally. |
Oh, caused by prettier/prettier#15433, in pre-v3.1 we doesn't format that file at all. |
And that's a bug you rasied.. prettier/prettier#15079 😄 |
OK, last thing is that the error message is a bit confusing? It successfully understands that it should use |
No, the plugin is not loaded, the config file tells prettier to use that parser, https://github.com/Avansai/next-multilingual/blob/c48503df8062304e215919a9ea2f04476d9b253a/example/.prettierrc.yaml#L25 |
Hah, that makes sense then! Thanks for your explanation! Close due to answered as above then. |
Please read the conversation carefully. |
I think I get it - thanks for looking into this! |
I just upgraded to Prettier
3.1.0
this morning and got this new error:[error] Couldn't resolve parser "sh".
When I downgrade to Prettier
3.0.3
the problem dissapears.How to reproduce:
https://github.com/Avansai/next-multilingual
packages.json
and set Prettier to version3.1.0
npm install
npm test
The text was updated successfully, but these errors were encountered: