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

Plugin cannot be loaded when used as a global package #2391

Open
trymeouteh opened this issue Aug 2, 2024 · 1 comment
Open

Plugin cannot be loaded when used as a global package #2391

trymeouteh opened this issue Aug 2, 2024 · 1 comment

Comments

@trymeouteh
Copy link

When I install this plugin with the prettier package as a global npm package

npm install --global prettier @prettier/plugin-php

I am unable to use the PHP plugin to format PHP code. When I format a PHP file, I get the following error...

$ prettier ./index.php --write
[error] Cannot find package '@prettier/plugin-php' imported from /home/john/Documents/website/noop.js

Please allow developers to install the plugin globally and be able to use the plugin to format PHP files.

@czosel
Copy link
Collaborator

czosel commented Aug 2, 2024

I was able to reproduce this, and it seems to be a known issue in Prettier: prettier/prettier#15141

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