Open mihailthebuilder opened 2 weeks ago
Do you mean formatting of Astro files, or other files? Seems like this is more specific to vscode or the astro extension.
@bluwy formatting of Astro files. Let me know if I should raise this issue in another repo.
adding prettier as a dev dependency seemed to fix this for me
"devDependencies": { "prettier": "^3.0.0" }
This happens because of yaml-language-server
, used now with content intellisense, having a dependency on Prettier 2, which cause formatting to fail.
I'm not sure what we'll be able to do for this, might need to fork upstream 😔
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When I create a new Astro project with
npm create-astro@latest
, formatting in VSCode doesn't work. After I downgrade to an earlier version (4.11.3
), it starts working again. I then upgrade to the latest version, and it works.What's the expected result?
VSCode formatting works.
Link to Minimal Reproducible Example
https://github.com/mihailthebuilder/astro-format-bug
Participation