NuxtN
Nuxt13mo ago
nesivapama

Issue with import types with Nuxt UI Pro and Nuxt UI

Hello. I have an issue with Nuxt UI Pro. I installed it as the docs says, the issue is that I'm trying to make a form, as it is in the docs.

import type { FormSubmitEvent } from '#ui/types';
import type { HeaderLink } from '#ui-pro/types'

And I'm getting this errors:

Cannot find module '#ui/types' or its corresponding type declarations.ts-plugin(2307)
Cannot find module '#ui-pro/types' or its corresponding type declarations.ts-plugin(2307)

I checked the node_modules/ @nuxt folder and the types are there. I changed the path to @nuxt/ui/dist/runtime/types but since nuxt/ui is installed as a dependency of ui-pro, it doesn't recognize it.

I don't know what to do
Was this page helpful?