#Types error with Nuxt UI and vue-macros/nuxt

2 messages · Page 1 of 1 (latest)

river ginkgoBOT
#

Hi @sharp ferry. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

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:

  1. Make sure you're using the latest versions of both packages
  2. Check if there are any specific configuration requirements for using vue-macros with Nuxt UI
  3. Look for any type declaration files that might need to be included

If you continue experiencing issues, you might want to report this on the Nuxt UI GitHub repository as it appears to be a specific compatibility issue that isn't covered in the documentation.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: