idahogurl / vs-code-prettier-eslint

A Visual Studio Code Extension to format JavaScript and TypeScript code using the prettier-eslint package.
MIT License
190 stars 47 forks source link

格式化时报错 #179

Closed NT-Sasoli closed 1 year ago

NT-Sasoli commented 1 year ago

Error: Expected input to be a string, got object TypeError: Expected input to be a string, got object at fb.exports (/Users/sasoli/.vscode/extensions/rvest.vs-code-prettier-eslint-5.1.0/dist/extension.js:7:7296) at /Users/sasoli/.vscode/extensions/rvest.vs-code-prettier-eslint-5.1.0/dist/extension.js:192:25 at zme (/Users/sasoli/.vscode/extensions/rvest.vs-code-prettier-eslint-5.1.0/dist/extension.js:185:1460)

DirectorRen-TV commented 1 year ago

Perhaps this problem occurs with incompatible prettier (version 3.0.0 and above) Try to manually lock prettier version on 2.8.8 (last 2.x.x version for now)

NT-Sasoli commented 1 year ago

当我将 prettier eslint eslint-plugin-prettier vue-eslint-parser 全部版本降级后,格式化成功了,但非常希望能适配新的版本

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.