Skip to content

[v4] Cannot apply unknown utility class: xxx #15778

@clovu

Description

@clovu

Hello!

After upgrading from v3 to v4(via CLI), I encountered some error: Cannot apply unknown utility class: text-card-foreground.

This never happened in v3.

After some trial and error, I found that it seems necessary to import the main CSS file in my CSS.

Image Image

Is this the expected behavior? This will cause a large number of component styles to have issues.

Or, is there a trick for automatic import?

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