Skip to content

@apply space-x-* or space-y-* not working #1791

Closed
@djrasmusp

Description

@djrasmusp

When trying to use space-x-* or space-y-* I get an build error say:

Syntax error: @apply cannot be used with .space-x-4 because .space-x-4 either cannot be found, or its actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that .space-x-4 exists, make sure that any @import statements are being properly processed before Tailwind CSS sees your CSS, as @apply can only be used for classes in the same CSS tree.

The classes gets build in the css file, if I dont purge first, but it can be used with @apply

Im using Tailwindcss 1.4.6

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