🐛 BUG: Couldn't load prettier
or prettier-plugin-astro
when using Yarn PnP
#655
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: yarn-pnp
Issue specific to yarn pnp support (scope)
Describe the Bug
I am using Yarn berry in my project, which I believe is already supported: #370 (and I could install the Astro language server nicely).
However, I'm getting this message/error when I'm opening an
.astro
file:I tried to replicate it in a repository (using Codespaces: https://github.com/imballinst/astro-yarn-berry-pnp), and it seems I am able to replicate the behavior. Do you might have an idea on what I should do, or could you point me out to a documentation that I could use? Thanks! 🙇♂️
Steps to Reproduce
With the sample repository:
git clone [email protected]:imballinst/astro-yarn-berry-pnp.git
src/layouts/Layout.astro
This is despite that
prettier
is already installed asdevDependencies
and I have the Prettier SDK already:In the extension output, I got this:
The text was updated successfully, but these errors were encountered: