tailwindlabs / prettier-plugin-tailwindcss

A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.
MIT License
5.66k stars 135 forks source link

Can't resolve 'prettier-plugin-astro' #319

Closed denchen closed 1 month ago

denchen commented 1 month ago

What version of prettier-plugin-tailwindcss are you using?

0.6.7

What version of Tailwind CSS are you using?

3.4.13

What version of Node.js are you using?

v20.12.2

What package manager are you using?

npm

What operating system are you using?

macOS

Reproduction URL

Describe your issue

Running prettier as part of my pre-commit chain, I get:

✖ prettier --single-quote --write:
[error] Can't resolve 'prettier-plugin-astro' in '/Users/denchen/git/ui/node_modules/prettier-plugin-tailwindcss/dist/index.mjs'
idimetrix commented 1 month ago

The same problem.

lstephensca commented 1 month ago

I have a very similar issue in a new nextjs 14 project I started. However, I am getting Can't resolve @shopify/prettier-plugin-liquid.

scrlkx commented 1 month ago

I started to have a similar problem on an Astro project right after updating to 0.6.7 (0.6.6 works well).

npx prettier src/ --check

Checking formatting...
[error] Can't resolve '@shopify/prettier-plugin-liquid' in '../node_modules/prettier-plugin-tailwindcss/dist/index.mjs'
thecrypticace commented 1 month ago

Sorry fix incoming…

worapolburaphan commented 1 month ago

downgrade to 0.6.6 is work for me now @denchen

thecrypticace commented 1 month ago

Released as v0.6.8 — apologies. Need to tweak the test suite to detect this case correctly.