prefer node_modules version of prettier instead of bundled version
See original GitHub issueDocumentation says
Prettier resolution
This extension will use prettier from your project's local dependencies. Should prettier not be installed locally with your project's dependencies, a copy will be bundled with the extension.
If i add prettier to my local dependencies after installing the extension, the local prettier will be ignored. Instead, the bundled version will be used. I think it would be better, if the extensions checks for a prettier in local dependencies all the time, not only after installation.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
In VS Code, I'm getting this error, 'Failed to load module ...
If that package.json contains prettier, the extension uses that, otherwise it will fall back to using the bundled version of prettier.
Read more >Install - Prettier
Install an exact version of Prettier locally in your project. · Add a .prettierrc.json to let your editor know that you are using...
Read more >Prettier - Code formatter - Visual Studio Marketplace
Should prettier not be installed locally with your project's dependencies or globally on the machine, the version of prettier that is bundled ......
Read more >Prettier not working in VS code - Salesforce Stack Exchange
Installed Prettier and selected Prettier as the 'Default Formatter' for both User and Workspace. Installed node js. Ran the command npm install.
Read more >prettier-eslint - npm
If it cannot find one, then it will use the version that prettier-eslint has installed locally. If you'd like to specify a path...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@bardware did you install the node_modules after you opened the project in VSCode? If so, try to reload VScode.
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.