Closed codeflorist closed 1 year ago
What version of Prettier are you using?
I have the same problem, my prettier version is v2.8.8
devDependencies:
eslint-plugin-prettier-vue 4.2.0
└── prettier 2.8.8
prettier-plugin-tailwindcss 0.5.0
└── prettier 2.8.8 peer
v0.5.0 requires a minimum of Prettier v3.0 now. If you still need Prettier v2.8 stick to v0.4.
Ah, i see. That must bei it. Thanks!
I'm seeing the same error on Prettier 3.0.1
EDIT
Got this working, had to change:
plugins: [require("prettier-plugin-tailwindcss")],
to
plugins: ["prettier-plugin-tailwindcss"],
@matthewwilson still have the same error, even i update prettier@^3, and i set plugins: ["prettier-plugin-tailwindcss"],
.
Ignoring my question, I see that the prettier version in the log is 2.8, so I update the vscode prettier plugin and it works fine.
What version of
prettier-plugin-tailwindcss
are you using?v0.5.0
What version of Tailwind CSS are you using?
v3.3.3
What version of Node.js are you using?
v18.16.1
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe your issue
v0.5.0 throws the following error:
v0.4.1 is working without problems.