You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, this isn't exactly the same issue but it's somewhat related to #3186. I'm trying to wrap UInput in a custom component and want to expose all the props it uses. Here's what I tried:
The issue is: I can access types exported from #ui/types/form, #ui/types/locale, and #ui/types/utils, but none of the component interfaces (like InputProps) are properly indexed or accessible through #ui/types.
Looks like an indexing/alias resolution issue in Nuxt or WebStorm — but maybe the structure of the exports from #ui/types could be improved to help this?
Any ideas or recommended workaround?
Many thanks
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
I just tried importing from @nuxt/ui directly, but unfortunately the InputProps type still isn’t found by the IDE. I'm using Nuxt UI Pro.
Could it be related to the fact that Nuxt UI Pro no longer requires installing the base Nuxt UI package? Maybe the typings from the standard @nuxt/ui aren't bundled or re-exported properly in Pro?
Let me know if there's something I might be missing.
Edit: I also tried installing @nuxt/ui explicitly, but that didn't solve the issue either. From what I can tell, all the export * from '../components/xxx.vue' inside the types aren’t properly picked up by the IDE.
After doing some more digging, I'm now fairly convinced the issue comes from the fact that the interfaces (like InputProps) are not properly exported because they live directly inside .vue files.
It seems like IDEs (like WebStorm) and even some tooling have trouble resolving types exported from Vue SFCs. These two discussions helped confirm that:
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.2
Reproduction
Description
Hey, this isn't exactly the same issue but it's somewhat related to #3186. I'm trying to wrap UInput in a custom component and want to expose all the props it uses. Here's what I tried:
The issue is: I can access types exported from #ui/types/form, #ui/types/locale, and #ui/types/utils, but none of the component interfaces (like InputProps) are properly indexed or accessible through #ui/types.
Looks like an indexing/alias resolution issue in Nuxt or WebStorm — but maybe the structure of the exports from #ui/types could be improved to help this?
Any ideas or recommended workaround?
Many thanks
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: