Skip to content

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

@ziloen

Description

@ziloen

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/%._-]*$/

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