-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Prettier formatter does not work out-of-the-box in VSCode 1.38.1 in NX NestJS application #1856
Comments
Thanks, @AryanJ-NYC - can you provide a little more detail on how to reproduce this? I've tried the steps you give and tried with your repo and prettier runs fine for me in both of them. I also have the same extension version. How are you running it? Are you using |
Sure. Sorry for the lack of detail. I went into From here, neither Thanks for taking the time out to try and reproduce this. I'm mostly hoping this is somehow my local machine (but also hope to get Prettier working). Edit: Also edited OP with specific file. |
Thanks. I noticed the broken |
I am running macOS High Sierra, Version 10.13.6. |
prettier/prettier-vscode#672 (comment) I found the solution. VSCode has (had) a prettier.eslint setting that I had turned on (likely from a long, long time ago). It's only with this eslint config that I've run into trouble. Sorry for the trouble and thanks for your time. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
When I use the
prettier
format on a file inside the VSCode editor, it succeeds.Current Behavior
When I use the
prettier
format on a file inside the VSCode editor, it throws an error in the output tab of the terminal.Failure Information (for bugs)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
npx create-nx-workspace@latest {whatever}
yarn add @nrwl/nest
nx g @nrwl/nest:application
prettier
on a badly formattedbroken-prettier/apps/src/app/app.module.ts
in VSCodeContext
Please provide any relevant information about your setup:
package.json
:https://github.com/AryanJ-NYC/broken-prettier
Failure Logs
Other
VSCode Version: 1.38.1
esbenp.prettier-vscode extension version: 2.2.2
The text was updated successfully, but these errors were encountered: