This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
fix: Can't pass object to template after update the version from 0.32.0 to 0.33.xΒ #728
Open
Description
π The bug
I can't pass an object to the template after updating the version from 0.32.0 to 0.33.0.
π οΈ To reproduce
in {root}/components/Header.vue
<template>
<div>
<nuxt-link v-for="page in data.pages" :key="page.title" :to="page.to">
{{ page.title }}
</nuxt-link>
</div>
</template>
<script>
import { defineComponent } from '@nuxtjs/composition-api'
export default defineComponent({
setup() {
return {
data: {
pages: [
{ title: 'Title 1', to: 'To 1' },
{ title: 'Title 2', to: 'To 2' },
],
},
}
},
})
</script>
I got this error: Cannot read properties of undefined (reading 'pages')
My project is public. The original repository here.
π Expected behaviour
I would expect it to work as it did in version 0.32.0.