Skip to content
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
@emretepedev

Description

@emretepedev

πŸ› 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions