Skip to content

[upgrade to v4] Error: Cannot apply unknown utility class: lg:block #17973

@thepra

Description

@thepra

What version of Tailwind CSS are you using?

v3.4.17

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

npx

What version of Node.js are you using?

v22.14.0

What operating system are you using?

Windows

Reproduction URL

@layer base {
    .no-scrollbar-mobile::-webkit-scrollbar {
    @apply hidden lg:block;
  }
}

Describe your issue

Can't upgrade because of that issue in the title, weirdly enough, it can't interpret lg:block as a valid concatenated class.

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