Skip to content
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

Prettier suddenly unable to format anything #2331

Closed
bojidaryovchev opened this issue Dec 19, 2021 · 5 comments
Closed

Prettier suddenly unable to format anything #2331

bojidaryovchev opened this issue Dec 19, 2021 · 5 comments
Labels
locked Please open a new issue and fill out the template instead of commenting.

Comments

@bojidaryovchev
Copy link

bojidaryovchev commented Dec 19, 2021

image

Prettier v2.5.1
TypeScript v4.5.2

Suddenly prettier cannot format anything (not even plain javascript files, I am getting that same error I have posted a picture of, but it says 'JavaScript'-files instead)

here is my VS Code settings.json

image

and my package.json

image

@bojidaryovchev bojidaryovchev changed the title Extension "Prettier - Code formatter" is configured as formatter but it cannot format 'TypeScript React'-files Prettier suddenly unable to format anything Dec 19, 2021
@bojidaryovchev
Copy link
Author

after tried the vscode version from september the problem remains

@bojidaryovchev
Copy link
Author

also tried disabling the built-in typescript and javascript language features, still doesnt work, I am unable to format anything

@ste163
Copy link

ste163 commented Dec 19, 2021

Getting the exact same issue on my laptop running Linux Mint 20.2. Works fine on my Mac Book Pro though...

@bojidaryovchev
Copy link
Author

ok I managed to figure out what my problem was.. if you see my package.json you can see the prettier-plugin-typescript in there, it used to work some days ago but maybe a version has changed so now it doesn't work.. after removing it I am able to format again

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Mar 22, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants