nesivapama
nesivapama
NNuxt
Created by nesivapama on 12/18/2024 in #❓・help
Issue with NuxtUI Pro (mapContentNavigation function)
Hello, I'm doing exactly what is on the documentation: <script setup lang="ts"> const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] }) </script> <template> <UHeader> <template #panel> <UNavigationTree :links="mapContentNavigation(navigation)" /> </template> </UHeader> </template> And I'm getting this error: marketing.vue:68 Uncaught (in promise) TypeError: _ctx.mapContentNavigation is not a function at marketing.vue:68:32 marketing.vue:68 [Vue warn]: Property "mapContentNavigation" was accessed during render but is not defined on instance.
49 replies
NNuxt
Created by nesivapama on 12/7/2024 in #❓・help
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
21 replies