prettierd icon indicating copy to clipboard operation
prettierd copied to clipboard

prettierd not reading the config file with tailwindcss plugin

Open ahmafi opened this issue 1 year ago • 4 comments

I have the following prettier.config.js file, and I'm using ESM, adding the prettier-plugin-tailwindcss in the plugins results in not reading the config file at all. I'm also working on a monorepo with yarn workspaces.

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

ahmafi avatar Sep 16 '23 12:09 ahmafi

I had the same issue where including prettier-plugin-tailwindcss was causing issues with prettierd (although my config was using .prettierrc). I had an old instance of prettierd running that was causing the issue. Running prettierd stop fixed this issue for me. Hope it helps your case.

mononoken avatar Sep 30 '23 09:09 mononoken

I can confirm the issue with "prettierd" ignoring local config overrides. The method suggested by @mononoken helped resolve this obscure issue.

skoch13 avatar Oct 11 '23 22:10 skoch13

This is still happening by the way. Took me a long time to figure out it was prettierd that seems to be caching the last used config or something. @mononoken's workaround helped me indeed. Make sure to run prettierd stop every time you make a change to your prettier config file.

voinik avatar Apr 20 '24 10:04 voinik