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

UButton emits #2103

Open
ElYaiko opened this issue Sep 2, 2024 · 1 comment
Open

UButton emits #2103

ElYaiko opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@ElYaiko
Copy link

ElYaiko commented Sep 2, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.15.1
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.1
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, extends, modules, ui
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

v2.18.4

Reproduction

Description

Type '{ class: string; label: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & Partial<{ size: ButtonSize; type: string; replace: boolean; class: any; truncate: boolean; target: "_blank" | "_parent" | "_self" | "_top" | (string & {}); ... 25 more ...; trailing: boolean; }> & Omit<...>'.
  Property 'onClick' does not exist on type 'IntrinsicAttributes & Partial<{ size: ButtonSize; type: string; replace: boolean; class: any; truncate: boolean; target: "_blank" | "_parent" | "_self" | "_top" | (string & {}); ... 25 more ...; trailing: boolean; }> & Omit<...>'.

Additional context

Emits like @click are not defined in the UButton component.

Logs

No response

@ElYaiko ElYaiko added bug Something isn't working triage labels Sep 2, 2024
@ElYaiko
Copy link
Author

ElYaiko commented Oct 28, 2024

Any update?
More than the half of tsc errors in my project are because of this

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