-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
npm run prettier:check fails with exit status 1 #2453
Comments
If you specify |
I'm having the same issues when I run I made sure that I have updated my packages. You mention that I should use the --format option, but my question is, where? 😅
|
All |
You can also run |
@raymondfeng not sure to understand the workaround |
@eric-jesover The
If you don't care formatting, you can remove such scripts from |
@raymondfeng yes understood that, thanks for the clarification |
|
Thanks a lot @raymondfeng You made my day. By the way, that is a pretty strange behavior. I would expect prettier to list issues, not to fail without any hint. But this is a completely different topic and has nothing to do with Loopback. Thanks again. |
Yup, I expect it should tell me what is going wrong. |
Description / Steps to reproduce / Feature proposal
Create a new app with
lb4 app
. Then create a new datasource and a model with some fields.Or clone the repo https://github.com/asinyagin/lb-prettier-reproduce
Run
DEBUG=* npm run prettier:check
Current Behavior
Expected Behavior
It should run without errors.
If I run the prettier command it exits with code 0:
There is a simlar issue #1045, but I'm using the latest release.
The text was updated successfully, but these errors were encountered: