#Types error with Nuxt UI and vue-macros/nuxt
2 messages · Page 1 of 1 (latest)
I understand you're experiencing TypeScript errors with Nuxt UI Pro V3 when adding vue-macros/nuxt to your project. The error specifically mentions not being able to resolve the AccordionProps type.
Based on the knowledge sources provided, I don't see specific information about compatibility issues between Nuxt UI Pro V3 and vue-macros/nuxt. However, I can provide some context about Nuxt UI's TypeScript integration that might help understand the issue.
Nuxt UI V3 has enhanced TypeScript integration with:
- Full auto-completion for component props based on your theme
- Generic-based components built using Vue 3 Generics
- Type-safe theming leveraging Tailwind Variants
The AccordionItem type is used in various examples in the documentation, but there's no explicit mention of an AccordionProps type in the provided knowledge sources.
This could be a conflict between how vue-macros/nuxt and Nuxt UI Pro handle TypeScript types. Since Nuxt UI V3 uses Vue 3 Generics for its components, there might be compatibility issues with vue-macros.
Some potential solutions you could try:
- Make sure you're using the latest versions of both packages
- Check if there are any specific configuration requirements for using vue-macros with Nuxt UI
- Look for any type declaration files that might need to be included