Skip to content

No classes generated in monorepo setup with Yarn PnP #17739

Open
@Wroud

Description

@Wroud

What version of Tailwind CSS are you using?

v4.0.8 / v4.1+

What build tool (or framework if it abstracts the build tool) are you using?

Vite 6.1+

What version of Node.js are you using?

v22

What browser are you using?

Chrome latest

What operating system are you using?

macOS

Reproduction URL

https://github.com/Wroud/tailwindcss-yarn-pnp

Describe your issue

I think that this problem is because yarn pnp doesn't use real file system paths, insted it will be something like:

/Users/user/Documents/working-repo/.yarn/__virtual__/@wroud-vite-plugin-playground-virtual-7ef94fc781/1/packages/@wroud/vite-plugin-playground/src/app/components/Layout.css

@source also doesn't work (before v4.1 version it's possible to use absolute paths, but they also not work after v4.1)

this setup works well on 4.0.7 version and broken after 88b762b#diff-00d01a2d38f5f4253651cf9811eab1182c96f0307e78c567b803416e24b98165

Metadata

Metadata

Assignees

No one assigned

    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