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

[v2.2.0] 500 Error, h is not defined when using FormGroup #236

Closed
madebyfabian opened this issue May 27, 2023 · 0 comments
Closed

[v2.2.0] 500 Error, h is not defined when using FormGroup #236

madebyfabian opened this issue May 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@madebyfabian
Copy link
Sponsor

Hey there, sorry but I guess the new version broke the new FormGroup. When using it, you get a h is not defined error.
I also have some type errors while trying to use it exactly like in the docs (saying that the name prop is required on the <UInput> even though I added it to the <UFormGroup>.

By checking the source, I guess it's because the h method is not imported from vue.
https://github.com/nuxtlabs/ui/blob/dev/src/runtime/components/forms/FormGroup.ts#L1

I can create a PR if that helps.

Version

@nuxthq/ui: v2.2.0
nuxt: v3.5.1

Reproduction Link

https://stackblitz.com/edit/github-iksfny

Steps to reproduce

Just install @nuxthq/ui and use the <UFormGroup> component

What is Expected?

No errors

What is actually happening?

Error

@madebyfabian madebyfabian added the bug Something isn't working label May 27, 2023
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

No branches or pull requests

1 participant