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

[v4] @container is an invalid utility name #14791

Open
ziloen opened this issue Oct 25, 2024 · 1 comment · May be fixed by #14793
Open

[v4] @container is an invalid utility name #14791

ziloen opened this issue Oct 25, 2024 · 1 comment · May be fixed by #14793

Comments

@ziloen
Copy link
Contributor

ziloen commented Oct 25, 2024

What version of Tailwind CSS are you using?

v4.0.0-alpha.30

Reproduction URL

Describe your issue

I am trying to upgrade to v4, but encountered the following error when using @tailwindcss/container-queries:

`matchUtilities({ '@container' : … })` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter, eg. `scrollbar`

const IS_VALID_UTILITY_NAME = /^[a-z][a-zA-Z0-9/%._-]*$/

@philipp-spiess
Copy link
Member

@ziloen Thanks! Agree this should not break: #14793, especially also for other plugins that might do something similar. However, container queries are backed into Tailwind core since 3.2 so you might not need that plugin anymore 🙂 https://tailwindcss.com/blog/tailwindcss-v3-2#container-queries

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