Prettier Error: Invalid host defined options

I upgraded to the latest version of prettier
"@types/prettier": "^2.7.3",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.3.0"
"@types/prettier": "^2.7.3",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.3.0"
json And now prettier always errors: ["ERROR" - 02:56:21] Error handling text editor change ["ERROR" - 02:56:21] Invalid host defined options TypeError: Invalid host defined options Not sure if it's actually the version or something else, because when I downgrade again it still breaks in that project. Any ideas why? Prettier conf looks like this:
/** @type {import("prettier").Config} */
const config = {
plugins: [require.resolve("prettier-plugin-tailwindcss")],
};

module.exports = config;
/** @type {import("prettier").Config} */
const config = {
plugins: [require.resolve("prettier-plugin-tailwindcss")],
};

module.exports = config;
And vs code settings:
"prettier.configPath": "prettier.config.cjs",
"prettier.prettierPath": "node_modules//prettier"
"prettier.configPath": "prettier.config.cjs",
"prettier.prettierPath": "node_modules//prettier"
Solution:
Reinstalling the VS Prettier plugin solved this problem for me
Jump to solution
1 Reply
Solution
Bearsy
Bearsy17mo ago
Reinstalling the VS Prettier plugin solved this problem for me
Want results from more Discord servers?
Add your server