-
-
Notifications
You must be signed in to change notification settings - Fork 458
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 settings are not recognized #2429
Comments
Having a similar problem with |
The vscode extension has been having issues with applying plugins to prettier. |
It seems (for me) to only be looking in the root folder of the workspace. If it's further up or down the folder hierarchy towards the file being prettier-ed, it isn't found. https://prettier.io/docs/en/configuration.html
Same issue with |
And this mostly can be, you've installed multiple prettier versions locally, you can check your lock files to ensure, and you can always use Take https://github.com/1stG/configs/blob/master/packages/prettier-config/base.js base an example. |
See also prettier/prettier#8474, not exactly the same, but related, multiple prettier versions or |
For the reproduction of current issue, see You can use |
Then, is it solved by writing in package.json like the following? "resolutions": {
"eslint-plugin-prettier": "^4.1.0",
"prettier": "^2.7.1"
} |
A single |
… issue that was causing potential glitches. (prettier/prettier-vscode#2429) Update Dependencies.
Fixed Prettier having multiple versions installed due to a dependency issue that was causing potential glitches. (prettier/prettier-vscode#2429) Update Dependencies.
@logue I think this can be closed then? |
OK |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
All plugins for Prettier are not recognized by vscode prettier and I get a
Cannot find module
error.Github Repository to Reproduce Issue
https://github.com/logue/vite-vue2-ts-starter
Currently, this issue intentionally comments out the plugin settings.
Steps To Reproduce:
The settings in
.prettierrc.yml
are as follows:Expected result
The plugin settings are also reflected in prettier-vscode, and formatting is performed based on it.
Actual result
When the plugin is configured, its contents are not recognized and the error
Cannot find module
is raised.It does not occur if you comment out all the plugin lines.
Additional information
I have confirmed that running prettier directly from the command line in the project root works without problems.
VS Code Version:
Prettier Extension Version:
9.2.0
OS and version:
Windows 11
Prettier Log Output
The text was updated successfully, but these errors were encountered: