Module '"#components"' has no exported member 'UFormGroup'
Trying to solve this issue where this will flood my consoles a lot:
So i added this to my register script as an attempted fix:
But i get this error:
Module '"#components"' has no exported member 'UFormGroup'
any thoughts?3 Replies
Hi @averwhy. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The error occurs because there is no component named
UFormGroup exported by Nuxt UI or available in the Nuxt auto-imported components. In Nuxt UI v3, the component previously known as FormGroup has been renamed to FormField (and thus, the auto-imported component is now UFormField) as part of the migration to align with the Reka UI naming convention. You should use UFormField instead of UFormGroup in your imports and templates.
So, update your import to:
And in your template, replace any usage of <UFormGroup> with <UFormField>.
This change is documented in the Nuxt UI migration guide, which states:
| v2 | v3 |
|------------|--------------|
| FormGroup | FormField |
See the migration guide for more details.
If you continue to reference UFormGroup, Nuxt will flood your console with "Failed to resolve component" warnings, as it cannot find or auto-import a component by that name. Switching to UFormField will resolve the issue and stop the warnings.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@267410788996743168> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
yea that might do it