question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prefer node_modules version of prettier instead of bundled version

See original GitHub issue

Documentation 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RobinMalfaitcommented, Jul 7, 2018

@bardware did you install the node_modules after you opened the project in VSCode? If so, try to reload VScode.

0reactions
github-actions[bot]commented, Apr 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found