You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have prettier installed in VS Code extension version is 11
I have prettier installed via NPM version is 1.19.1
When I navigate around in my files the extension throws an error, and formatting is inconsistent, sometimes it follows the repo configuration file, other times it uses its own defaults.
I found this issue #3436 and have downgraded the ESLint extension to 2.4.4 but that didn't fix my issue
Steps To Reproduce:
Have prettier installed
Focus a file in the editor
Expected result
I'd expect the extension to work as intended and do its job
Actual result
I got the following error
["ERROR" - 10:29:52 AM] Error handling text editor change
["ERROR" - 10:29:52 AM] Invalid Version: [object Object]
TypeError: Invalid Version: [object Object]
at new SemVer (c:\xxx\node_modules\prettier\index.js:2462:13)
at compare (c:\xxx\node_modules\prettier\index.js:2819:12)
at Function.gte (c:\xxx\node_modules\prettier\index.js:2885:12)
at filterSince (c:\xxx\node_modules\prettier\index.js:4322:82)
at Array.filter (<anonymous>)
at getSupportInfo (c:\xxx\node_modules\prettier\index.js:4255:6)
at Object.getSupportInfo (c:\xxx\node_modules\prettier\index.js:44208:15)
at t.PrettierMainThreadInstance.getSupportInfo (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:18548)
at t.default.getSelectors (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:12074)
at t.default.handleActiveTextEditorChanged (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:11123)
["ERROR" - 10:29:52 AM] Error handling text editor change
["ERROR" - 10:29:52 AM] Invalid Version: [object Object]
TypeError: Invalid Version: [object Object]
at new SemVer (c:\xxx\node_modules\prettier\index.js:2462:13)
at compare (c:\xxx\node_modules\prettier\index.js:2819:12)
at Function.gte (c:\xxx\node_modules\prettier\index.js:2885:12)
at filterSince (c:\xxx\node_modules\prettier\index.js:4322:82)
at Array.filter (<anonymous>)
at getSupportInfo (c:\xxx\node_modules\prettier\index.js:4255:6)
at Object.getSupportInfo (c:\xxx\node_modules\prettier\index.js:44208:15)
at t.PrettierMainThreadInstance.getSupportInfo (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:18548)
at t.default.getSelectors (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:12074)
at t.default.handleActiveTextEditorChanged (c:\Users\xxx\.vscode\extensions\esbenp.prettier-vscode-11.0.0\dist\extension.js:1:11123)
The text was updated successfully, but these errors were encountered:
Summary
I have prettier installed in VS Code extension version is 11
I have prettier installed via NPM version is 1.19.1
When I navigate around in my files the extension throws an error, and formatting is inconsistent, sometimes it follows the repo configuration file, other times it uses its own defaults.
I found this issue #3436 and have downgraded the ESLint extension to 2.4.4 but that didn't fix my issue
Steps To Reproduce:
Expected result
I'd expect the extension to work as intended and do its job
Actual result
I got the following error
Additional information
N/A
VS Code Version:
Prettier Extension Version:
11
OS and version:
Windows 11
Prettier Log Output
The text was updated successfully, but these errors were encountered: