What version of prettier-plugin-tailwindcss are you using?
v0.5.2
What version of Tailwind CSS are you using?
Don't have tailwind installed
What version of Node.js are you using?
v20.4.0 also tried 18.13.0
What package manager are you using?
pnpm
What operating system are you using?
Windows 11 64
Reproduction URL
https://stackblitz.com/edit/stackblitz-starters-grpqqn?file=package.json
Describe your issue
Problem occurred once i upgraded to v0.5.2, v0.4.1 worked fine.
When running prettier --write . in the reproduction project I get the following error for every file prettier wants to format:
Error: ENOENT: no such file or directory, open '\C:\Users\user\git\vue-useForm\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\prettier-plugin-tailwindcss\dist\css\preflight.css'

When following the path, the file preflight.css does indeed exist so I am guessing it has something to do with how pnpm symlinks node_modules. Furthermore, it seems that the problem only occurred on windows. Running prettier --write . in the stackblitz example works and I have a similar setup running on an ubuntu github action which also works correctly. In order to reproduce the issue one would have to download the stackblitz example and run it on a windows machine.
I'm happy to help debug this issue on my windows machine.
What version of
prettier-plugin-tailwindcssare you using?v0.5.2
What version of Tailwind CSS are you using?
Don't have tailwind installed
What version of Node.js are you using?
v20.4.0 also tried 18.13.0
What package manager are you using?
pnpm
What operating system are you using?
Windows 11 64
Reproduction URL
https://stackblitz.com/edit/stackblitz-starters-grpqqn?file=package.json
Describe your issue
Problem occurred once i upgraded to v0.5.2, v0.4.1 worked fine.
When running
prettier --write .in the reproduction project I get the following error for every file prettier wants to format:Error: ENOENT: no such file or directory, open '\C:\Users\user\git\vue-useForm\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\prettier-plugin-tailwindcss\dist\css\preflight.css'When following the path, the file
preflight.cssdoes indeed exist so I am guessing it has something to do with how pnpm symlinksnode_modules. Furthermore, it seems that the problem only occurred on windows. Runningprettier --write .in the stackblitz example works and I have a similar setup running on an ubuntu github action which also works correctly. In order to reproduce the issue one would have to download the stackblitz example and run it on a windows machine.I'm happy to help debug this issue on my windows machine.