Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beholderrk opened this issue Jun 29, 2022 · 5 comments

Comments

@beholderrk
Copy link

beholderrk commented Jun 29, 2022

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

@beholderrk beholderrk changed the title TypeError: Cannot read properties of undefined (reading 'tag') on Vue 3 vue-meta@3.0.0-alpha.10 Vue 3 vue-meta@3.0.0-alpha.10 TypeError: Cannot read properties of undefined (reading 'tag') when computed meta Jun 29, 2022
@jsaa
Copy link

jsaa commented Jul 10, 2022

Same here

@heidarv
Copy link

heidarv commented Aug 30, 2022

Still no fixes

@amokrunner
Copy link

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

@KhaledOmara
Copy link

Same here

@MoreBlood
Copy link

just provide the default value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants