Your project is configured to use an outdated version of prettier. You may encounter issues. It is recommended you upgrade to the latest version of prettier.
"prettier.prettierPath": "./node_modules/.bin/prettier"
โฏ ~/work/project/node_modules/.bin/prettier -v
1.19.1
[INFO - 10:19:39 AM] Formatting ~/work/project/frontend/src/containers/EditSiteContainer.js.
[INFO - 10:19:39 AM] Loaded module 'prettier@undefined' from '~/work/project/node_modules/.bin/prettier'.
[ERROR - 10:19:39 AM] Outdated version of prettier installed. Falling back to bundled version of prettier.
Link to a Github repo that can be used to reproduce the issue.
prettierPath to point to locally installed prettierSince 1.19.1 is the latest version, I expect prettier-vscode to use it
Falls back to bundled version of prettier
VS Code Version:
1.40.0
86405ea23e3937316009fc27c9361deee66ffbf5
x64
Prettier & Prettier Plugin Version:
```
[email protected]
[email protected]
OS and version:
macOS 10.15.1
Try setting the option to "prettier.prettierPath": "./node_modules/prettier" rather than the bin location.
That seems to have worked although the log output is a bit strange. I'm not sure what it means by No path provided, using bundled prettier.
[INFO - 11:24:36 AM] Extension Name: esbenp.prettier-vscode.
[INFO - 11:24:36 AM] Extension Version: 0.0.0.
[INFO - 11:24:36 AM] No path provided, using bundled prettier.
[INFO - 11:24:36 AM] No path provided, using bundled prettier.
[INFO - 11:24:36 AM] Loaded module '[email protected]' from '/Users/user/work/project/node_modules/prettier'.
@esetnik That is by design. That comes from the language registration part that happens before the module is loaded. I'll update the log messages to make that less confusing. Good feedback.
The latest update removes that unnecessary logging.
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.
Most helpful comment
Try setting the option to
"prettier.prettierPath": "./node_modules/prettier"rather than the bin location.