Prettier-vscode: Invalid pretterPath returns wrong error message.

Created on 28 Feb 2020  路  2Comments  路  Source: prettier/prettier-vscode

message.ts:

https://github.com/prettier/prettier-vscode/blob/9476a014323f41da7e89a05f133671a97a53ac07/src/message.ts#L4

warnOutdatedPrettierVersion:
https://github.com/prettier/prettier-vscode/blob/9476a014323f41da7e89a05f133671a97a53ac07/src/NotificationService.ts#L35

The extension keep giving outdated prettier version notification, but I have the latest version 1.19.1 installed.

./node_modules/.bin/prettier --version
1.19.1

The settings:

鎴睆2020-02-28涓嬪崍12 32 41

bug locked

Most helpful comment

The message is wrong. I鈥檒l look into it. The issue though is you set the prettier path to the bin path, not the module. Change it to ./node_modules/prettier and it should work as expected.

All 2 comments

The message is wrong. I鈥檒l look into it. The issue though is you set the prettier path to the bin path, not the module. Change it to ./node_modules/prettier and it should work as expected.

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.

Was this page helpful?
0 / 5 - 0 ratings