Skip to content
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

Error: ENOENT: no such file or directory, can not find path to preflight.css #230

Closed
DaLukasDev opened this issue Dec 5, 2023 · 2 comments · Fixed by #231
Closed

Error: ENOENT: no such file or directory, can not find path to preflight.css #230

DaLukasDev opened this issue Dec 5, 2023 · 2 comments · Fixed by #231
Assignees

Comments

@DaLukasDev
Copy link

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

v0.5.8

What version of Tailwind CSS are you using?

v3.3.6

What version of Node.js are you using?

v20.9.0

What package manager are you using?

PNPM

What operating system are you using?

Linux

Reproduction URL

Reproduction repo

To reproduce:

  • pnpm i in root of the repo.
  • Try to format a file on save in the UI packages or format using the shortcut

Downgrading to 0.5.7 will fix the issue.

Describe your issue

The prettier plugin in VSCode throws following error when trying to format a file after upgrading to 0.5.8.

Error: ENOENT: no such file or directory, open '/home/user/dev/tailwind-sort-repro/node_modules/.pnpm/prettier-plugin-tailwindcss@0.5.8_@ianvs+prettier-plugin-sort-imports@4.1.1_prettier@3.1.0/node_modules/prettier-plugin-tailwindcss/dist/css/preflight.css'

This does not happen with version 0.5.7.

@thecrypticace
Copy link
Contributor

whoops — new patch release incoming

@thecrypticace
Copy link
Contributor

Fixed in v0.5.9 — thanks for catching!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants