-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't read file preflight.css after upgrade to v0.5.2 #203
Comments
I get the same error when installing dependencies with After some investigation I found the code that throws the error:
I think the problem has something to do with the CJS interop fixes for When logging When logging The I'm not sure what happens here. |
Managed to fix it with the solution outlined here: https://stackoverflow.com/a/55944697/14543877 |
PR #204 |
PR's been merged and it'll be available via our insiders build shortly:
I'm planning on getting a tagged release out later today. |
insiders release works for me. thank you |
Regression is back in |
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\prettier-plugin-tailwindcss@0.5.2_prettier-plugin-organize-imports@3.2.3_prettier@3.0.1\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 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.
The text was updated successfully, but these errors were encountered: