-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Vetur cannot use Prettier installed via Yarn Berry (PnP) #2092
Comments
Follow up #1711. |
The fix here, just as with typescript, is to respect the |
I open a new issue #2469 . |
Fixed #2478 |
I did not fix this issue in #2478 , the code that looks for prettier does not use |
The error is solved. The prettier part write in documention. |
@yoyo930021 , I still cannot make Prettier work with Vetur (Prettier works with everything else though):
Tried installing both into root workspace and project workspace, played with This line from Vetur docs is super ambigious:
Does it mean users need to load plugin (which?) manually (how??). Prettier supports pnp afaik, at least it works with other filetypes in VSCode being installed via Yarn 2 w/ pnp (see yarnpkg/berry#1903 (comment)) |
I am not familiar with PnP. |
Info
Problem
I'm using Yarn 2.1.1, and installed Prettier using official manual: https://next.yarnpkg.com/advanced/editor-sdks/
Yarn installs packages within
.yarn
folder, and Vetur cannot find Prettier in such case:If I unplug the package and move
node_modules
from.yarn
into the workspace root, Vetur works fine.I assume Vetur is not 100% PnP compatible, at least when it comes to Prettier (maybe some other libs too).
The text was updated successfully, but these errors were encountered: