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

Closed
clairedornic29 opened this issue Sep 19, 2024 · 0 comments · Fixed by #2621
Closed
Labels
bug Something isn't working

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
@benjamincanac benjamincanac removed the triage label Oct 6, 2024 — with Volta.net
julien1619 added a commit to Creatiwity/ui that referenced this issue Nov 12, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants