Skip to content

Compiler errors out on complex types #14728

@cosmincartas

Description

@cosmincartas

Vue version

3.5.32

Link to minimal reproduction

https://github.com/cosmincartas/test-types

Steps to reproduce

I was trying to adapt a set of components to our design system while I ran into a problem related to complex types. Looks like the vue compiler cannot extend component props with library provided props such as VariantProps from tailwind-variants or extends base types from reka-ui.

  1. npm install
  2. npm run dev

What is expected?

I should be able to extend props of a component with other types.

What is actually happening?

Image

System Info

Any additional comments?

I've noticed that there is a package that addresses this problem, but I still got problems with some types from reka-ui if i am using vue.ts/complex-types. Could this be addressed in the core library?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions