Hi!
First of all, thanks for your library, it really helps me a lot.
However, I found out that when I used prettier-plugin-tailwindcss, it caused errors.
Error [ERR_REQUIRE_ESM]: require() of ES Module /.../node_modules/prettier-plugin-tailwindcss/dist/index.mjs not supported.
Instead change the require of /.../node_modules/prettier-plugin-tailwindcss/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
My research has led to a hypothesis that it is because of the version of Prettier in your lib.
That script is using Prettier 2 to format files and we only support Prettier 3, and Prettier 2 autoloads plugins, and Prettier 2 does not support ESM. Only require() / CJS.
Hi! First of all, thanks for your library, it really helps me a lot. However, I found out that when I used prettier-plugin-tailwindcss, it caused errors.
My research has led to a hypothesis that it is because of the version of Prettier in your lib.
As @thecrypticace in tailwindlabs wrote
I think there are related issues from other libs:
Is it possible to update the prettier version from 2 to 3? Thanks in advance!