Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Tjyoung's avatar
Level 14

How to use Vue 3 Meta with Vue.js 3?

I am trying to use vue-meta with vue3 but its not working, is there any way to use it? I am using vite...

0 likes
7 replies
Tjyoung's avatar
Level 14

@MohamedTammam

I am using following code:

import { createApp } from 'vue'
import VueMeta from "vue-meta";
import App from './App.vue'


createApp(App)
.use(VueMeta)
.mount('#app')

and

getting this error:

Uncaught TypeError: Cannot set properties of undefined (setting '$meta')

Tjyoung's avatar
Level 14

@MohamedTammam Tried that but it seems, there's a support for title only.

I think moving to teleport will help.

Macclinson's avatar

@Tjyoung having same issue it only work on title where you able able to get it done with teleport

Please or to participate in this conversation.