Skip to content

Tailwind Plugin Broken in V4 #7661

Closed
@mhornbacher

Description

@mhornbacher

Provide a general summary of the issue here

It seems that the :merge selector is no longer supported in V4 and is not included in the v4 docs.

tailwindlabs/tailwindcss#15617

🤔 Expected Behavior?

The plugin should not break the application when using peer selectors

😯 Current Behavior

The following error is thrown by Tailwind v4

Parsing css source code failed
  530 |   }
  531 |   .peer-disabled\:text-purple-500 {
> 532 |     :merge(.peer):where([data-rac])[data-disabled] ~ & {
      |             ^
  533 |       color: var(--color-purple-500);
  534 |     }
  535 |     :merge(.peer):where(:not([data-rac])):disabled ~ & {

'merge' is not recognized as a valid pseudo-class. Did you mean '::merge' (pseudo-element) or is this a typo? at [project]/src/app/globals.css:531:12

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://github.com/mhornbacher/tailwind-repro

Version

tailwindcss-react-aria-components 1.2.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

Kiddom

🕷 Tracking Issue

No response

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