adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.93k stars 1.12k forks source link

tailwind plugin breaks with tailwind 4 (alpha) #7263

Open luisrudge opened 1 week ago

luisrudge commented 1 week ago

Provide a general summary of the issue here

I know it's an alpha release, but I wanted to give a heads up!

๐Ÿค” Expected Behavior?

successful migration to v4

๐Ÿ˜ฏ Current Behavior

error

๐Ÿ’ Possible Solution

I don't know when they plan to release the migration guide for plugin authors, but I updated the plugin inside my node_modules folder with this and it worked.

image

Looks like you don't need to check for that future flag anymore, as it's the default in tailwind v4

๐Ÿ”ฆ Context

No response

๐Ÿ–ฅ๏ธ Steps to Reproduce

You can try this with any codebase running tailwind@v3 + tailwindcss-react-aria-components

$ npx @tailwindcss/upgrade@next -c ./tailwind.config.ts 
โ‰ˆ tailwindcss v4.0.0-alpha.30

โ”‚ Could not load the configuration file: Cannot read properties of undefined (reading 'length')

Version

latest

What browsers are you seeing the problem on?

Other

If other, please specify.

No response

What operating system are you using?

mac

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

adamwathan commented 1 week ago

We should still make this work in Tailwind itself without changing it for backward compatibility, thanks for flagging!