-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
SyntaxError: Unexpected token after install #55
Comments
I'm having the same issue - not using globally installed prettier though. |
I believe you still need to specify the plugin manually, although that does seem to contradict the prettier docs. @azz or @vjeux do you guys have any more info on how plugins are intended to be run from a cli? |
@mgrip I tried that as well, without luck. The command I attempted,
here's some more info,
edited to use the package.json from the correct branch |
what's the error you get when manually specifying the plugin? I'm guessing the package might have to be updated on npm - there have been a lot of changes since @azz originally published it |
|
I don’t know, @azz built all the support for it. |
Confirm don't work as expected |
Ok think I got something that will at least work for now. 2 main things
so this should work I can update the readme accordingly |
/cc @azz |
@camflan @pjhartin can you guys see if that worked when you have a chance? if so I'll close this out for now |
Pretty sure this is working - gonna close for now |
i believe its because |
Oh, ok!
- Camron
… On Feb 22, 2018, at 10:32 AM, Mike Grip ***@***.***> wrote:
i believe its because prettier would just add whatever the latest version published to npm is, prettier/prettier references the git repo (and there are recent changes that the plugins rely on)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@mgrip Thanks, I followed your instructions and all seemed to work well.i did notice however that a number of phpDoc comments within my phone code were being stripped away by prettier though. So I'm not 100% on using it right now. |
@pjhartin Please raise bugs for those items! @mgrip Sorry for the delay in responding. Fixing it in prettier/prettier#4038. |
Having installed prettier and @prettier/plugin-php globally, I cannot seem to get prettier to work on any php files, it always results in a syntax error.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: