vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

Vue 3 [email protected] TypeError: Cannot read properties of undefined (reading 'tag') when computed meta

Open beholderrk opened this issue 1 year ago • 5 comments

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 [email protected]

beholderrk avatar Jun 29 '22 08:06 beholderrk

Same here

jsaa avatar Jul 10 '22 21:07 jsaa

Still no fixes

heidarv avatar Aug 30 '22 15:08 heidarv

I am also seeing this error, using computed meta, 3.0.0-alpha.10

amokrunner avatar Oct 20 '22 04:10 amokrunner

Same here

KhaledOmara avatar Oct 29 '22 18:10 KhaledOmara

just provide the default value

MoreBlood avatar Nov 10 '22 17:11 MoreBlood