nuxt / nuxt

The Intuitive Vue Framework.
https://nuxt.com
MIT License
54.33k stars 4.97k forks source link

nuxtApp._useHead is not a function #19693

Closed agracia-foticos closed 1 year ago

agracia-foticos commented 1 year ago

Environment

Reproduction

I upgrade Nuxt to version 3.3.1 and when i start the app, throws an error

image

Describe the bug

I upgrade Nuxt to version 3.3.1 and when i start the app, throws an error

image

[nuxt] [request error] [unhandled] [500] nuxtApp._useHead is not a function at Object.updateHead (./node_modules/nuxt-schema-org/dist/runtime/plugin.mjs:15:15)
at Object.setupDOM (./node_modules/@vueuse/schema-org/dist/index.mjs:69:22)
at Object.forceRefresh (./node_modules/@vueuse/schema-org/dist/index.mjs:60:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ./node_modules/nuxt-schema-org/dist/runtime/plugin.mjs:49:90
at async Object.callAsync (./node_modules/unctx/dist/index.mjs:53:16)
at async applyPlugin (./node_modules/nuxt/dist/app/nuxt.js:113:23)
at async Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.js:123:5)
at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.js:29:7)
at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:27:18)

Additional context

No response

Logs

[nuxt] [request error] [unhandled] [500] nuxtApp._useHead is not a function
  at Object.updateHead (./node_modules/nuxt-schema-org/dist/runtime/plugin.mjs:15:15)  
  at Object.setupDOM (./node_modules/@vueuse/schema-org/dist/index.mjs:69:22)  
  at Object.forceRefresh (./node_modules/@vueuse/schema-org/dist/index.mjs:60:20)  
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)  
  at async ./node_modules/nuxt-schema-org/dist/runtime/plugin.mjs:49:90  
  at async Object.callAsync (./node_modules/unctx/dist/index.mjs:53:16)  
  at async applyPlugin (./node_modules/nuxt/dist/app/nuxt.js:113:23)  
  at async Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.js:123:5)  
  at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.js:29:7)  
  at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:27:18)
agracia-foticos commented 1 year ago

image

I upgrade nuxt-schema-org and runs