We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I recently attempted to convert a repo of mine to pnpm, but get this error when doing so.
pnpm
> prettier --write shader.frag shader.frag [error] Couldn't resolve parser "glsl-parser"
I made a minimum reproduction case here. https://github.com/disambiguator/pnpm-prettier-glsl/tree/switch-to-pnpm
The text was updated successfully, but these errors were encountered:
I don't think this is an issue which can be fixed by this plugin. The plugin just relies on the default prettier plugin loading mechanism.
Have you tried the workarounds in sveltejs/prettier-plugin-svelte#155 ?
See also prettier/prettier#9167 .
In general, I've found the npm alternatives are never worth the additional hassle, even if npm isn't perfect, but of yourse YMMV 🤷 .
Sorry, something went wrong.
Ah rad, you're right.This does solve it!
For posterity, changing .prettierrc.js to this fixes the problem.
.prettierrc.js
module.exports = { overrides: [{ files: ["*.frag"], options: { parser: "glsl-parser" } }], plugins: ["prettier-plugin-glsl"], };
No branches or pull requests
I recently attempted to convert a repo of mine to
pnpm
, but get this error when doing so.I made a minimum reproduction case here. https://github.com/disambiguator/pnpm-prettier-glsl/tree/switch-to-pnpm
The text was updated successfully, but these errors were encountered: