nuxt / vue-meta

Manage HTML metadata in Vue.js components with SSR support
https://vue-meta.nuxtjs.org
Other
4.08k stars 247 forks source link

Uncaught TypeError: can't access property "$meta", Vue.prototype is undefined #777

Closed gsmatheus closed 2 years ago

gsmatheus commented 2 years ago

Dependencies

  "dependencies": {
    "axios": "^0.27.2",
    "core-js": "^3.8.3",
    "slugify": "^1.6.5",
    "vue": "^3.2.13",
    "vue-meta": "^2.4.0",
    "vue-router": "^4.0.3",
    "vue3-carousel": "^0.1.40",
    "vuex": "^4.0.0"
  },

Code

import VueMeta from 'vue-meta'

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

Error

Uncaught TypeError: can't access property "$meta", Vue.prototype is undefined