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

Fallback to VLS bundled @prettier/plugin-pug for formatting when prettier is in workspace #2014

Closed
octref opened this issue Jul 5, 2020 · 3 comments

Comments

@octref
Copy link
Member

octref commented Jul 5, 2020

  • Have a workspace with prettier installed locally
  • Format a vue file with pug section
  • Formatting won't work. This is because prettier installed in workspace won't search the dependency folder of vls
@johndatserakis
Copy link

Hey there @octref - we're running into the same issue as well when using <template lang="pug"></template> blocks. I see that this issue was logged a few months back - have you run into anything since that could lead to a fix? I could look into it further if you have a few more clues available.

Like you, we have prettier installed locally.

All other formatting is working correctly in our Vue single file components - html, javascript, scss. Everything formats automatically without issue.

We're using:

Vetur: 0.27.3
All vue-cli packages at 4.5.0

Other relevant packages:

prettier: 1.19.1
pug: 3.0.0
pug-plain-loader: 1.0.0

Thank you.

@Shinigami92
Copy link

@johndatserakis You mention prettier: 1.19.1 ⚠️
Please try prettier: 2.1.1

@johndatserakis
Copy link

@Shinigami92 thank you for the quick reply.

In response to your post, I deleted my yarn.lock, node_modules, and upgraded prettier to the latest version and unfortunately it didn't work. Thanks for the suggestion though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants