Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom variants not recognized by TypeScript in app.config.ts after updating to v2.18.0 #2221

Open
clairedornic29 opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working triage

Comments

@clairedornic29
Copy link

clairedornic29 commented Sep 19, 2024

Environment

Version

v.2.18.0

Reproduction

https://stackblitz.com/edit/nuxt-ui-k1f28x?file=app.config.ts

Description

Since updating the library to version 2.18.0, custom variants defined in the app.config.ts are no longer recognized by TypeScript, resulting in type errors when using these custom variants in the code.

Steps to reproduce:

  1. Define a custom variant in app.config.ts
  2. Observe TypeScript type errors indicating the variant is not recognized when using it to custom another button ( in app.config.ts )

Expected behavior: Custom variants should be properly recognized and validated by TypeScript, as they were in versions prior to 2.18.0.

Thank you for your help in resolving this issue!

Additional context

No response

Logs

No response

@clairedornic29 clairedornic29 added bug Something isn't working triage labels Sep 19, 2024
@clairedornic29 clairedornic29 changed the title Custom variants not recognized by TypeScript in app.config.ts after updating to v2.18.3 Custom variants not recognized by TypeScript in app.config.ts after updating to v2.18.0 Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant