Skip to content

Missing variant warning in typescript #6278

@schillerenrico

Description

@schillerenrico

Package

v4.x

Description

Hi, does anyone know why TypeScript suddenly started warning about a missing variant?
<UButton ... size="2xl" ...>

TypeScript reports:
Type '"2xl"' is not assignable to type '"sm" | "md" | "lg" | "xl" | "xs" | undefined'.ts-plugin(2322)

However, everything still works at runtime, and the variant is correctly configured by me in app.config.ts.

Is this likely caused by a dependency or type definition issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions