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

Doesn't seem to work when using pnpm #38

Closed
Pika-Pool opened this issue Nov 7, 2021 · 2 comments
Closed

Doesn't seem to work when using pnpm #38

Pika-Pool opened this issue Nov 7, 2021 · 2 comments

Comments

@Pika-Pool
Copy link

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

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 file

Tools (please provide the output of the following commands):

  • Node version: 16.2.0
  • OS name: Windows 10
  • Installed prettier versions: 2.4.1
  • Installed plugin versions: 3.4.1
@avocadowastaken
Copy link
Owner

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.

@Pika-Pool
Copy link
Author

Yeah, it seems to be a prettier issue and not this plugin's. Thanks for pointing it out

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

No branches or pull requests

2 participants