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
Describe the bug
When using pnpm as the package manager, this message is shown:
npx prettier prisma\schema.prisma
Checking formatting...
prisma\schema.prisma[error] No parser could be inferred for file: prisma\schema.prisma
All matched files use Prettier code style!
Is this a problem with any prettier plugin with pnpm or is it specific to this plugin?
To Reproduce
use pnpm to add prettier and prettier-plugin-prisma to dependencies and run prettier on a prisma file
Hey @Pika-Pool, I'm not a pnpm myself, but after quick search I found this issue: prettier/prettier#8056, please check and tell me if it works for you.
Describe the bug
When using pnpm as the package manager, this message is shown:
Is this a problem with any prettier plugin with pnpm or is it specific to this plugin?
To Reproduce
use pnpm to add prettier and prettier-plugin-prisma to dependencies and run prettier on a prisma file
pnpm add -D prettier prettier-plugin-prisma pnpx prettier -c prisma\schema.prisma
Expected behavior
Prettier should be able to automatically find this plugin and format a
.prisma
fileTools (please provide the output of the following commands):
The text was updated successfully, but these errors were encountered: