Skip to content

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

@DaLukasDev

Description

@DaLukasDev

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/[email protected]_@[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/css/preflight.css'

This does not happen with version 0.5.7.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions