You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current/expected behavior?
the prettier plugin prettier-plugin-svelte should work when installed on a project. It does work with npm, it does not work with pnpm. I suspect the same issue will occur with any prettier plugin. I can create a repro repo if it helps.
What version of vim-prettier are you using - (output of :PrettierVersion) ? 1.0.0-alpha
What version of prettier are you using - (output of :PrettierCliVersion) ? 1.18.2
What is your prettier executable path - (output of :PrettierCliPath) ? /hom/andrew/Build/dev/andykais.github.io.sapper/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
it works when installing with npm.
works:
npm i -D prettier-plugin-svelte prettier
does not work:
pnpm i -D prettier-plugin-svelte prettier
The text was updated successfully, but these errors were encountered:
@andykais you could use the plugin with --plugin=./node_modules/prettier-plugin-svelte in the CLI. I found that here: prettier/prettier#8056 (comment)
Maybe not the best idea, but it works
thank you for the tip! Do you know how I can pass arbitrary args to the vim prettier plugin though? Funnily enough I was in need of this yesterday and just decided to keep a global npm and pnpm node_modules in tandem to support prettier plugins
Do you want to request a feature or report a bug?
What is the current/expected behavior?
the prettier plugin
prettier-plugin-svelte
should work when installed on a project. It does work with npm, it does not work with pnpm. I suspect the same issue will occur with any prettier plugin. I can create a repro repo if it helps.What version of
vim-prettier
are you using - (output of:PrettierVersion
) ?1.0.0-alpha
What version of
prettier
are you using - (output of:PrettierCliVersion
) ?1.18.2
What is your
prettier
executable path - (output of:PrettierCliPath
) ?/hom/andrew/Build/dev/andykais.github.io.sapper/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ?
it works when installing with
npm
.works:
does not work:
The text was updated successfully, but these errors were encountered: