Skip to content

Vue 3 vue-meta@3.0.0-alpha.10 TypeError: Cannot read properties of undefined (reading 'tag') when computed meta #770

Open
@beholderrk

Description

@beholderrk

I use computed meta

<script setup lang="ts">
const { organization } = storeToRefs(usePageOrganization());
const computedMeta = computed(() => ({
  title: organization.value?.name,
}));

useMeta(computedMeta);
</script>
<template>
  <metainfo>
    <template v-slot:title="{ content }">{{ content }}</template>
  </metainfo>
</template>

When vue-router is working there are no errors. But if you refresh the page there will be an error.

image

image

Env:
Vue 3
vue-meta@3.0.0-alpha.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions