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.
<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.