Skip to content

[Utility class] class doesn't exist. If [Utility class] is a custom class, make sure it is defined within a @layer directive. #7055

@Rolanddoda

Description

@Rolanddoda

I have created a StackBlitz reproduction of the issue.

Describe the bug:

I had TailwindCSS version ^3.0.5 and wanted to upgrade to ^3.0.13. After upgrade, I saw a couple of errors in my console.
Specifically, Tailwind is not able to recognize @layer utilities with @apply anymore.

Steps to reproduce:

  1. Open the minimal reproduction
  2. See in HelloWorld.vue that I have @apply my-custom-class
  3. Then open src/css/tailwind.css and see that my-custom-class is defined under @layer utilities
  4. Run the app and Observe the error

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