Skip to content

fix: nuxt4 Error #477

@FuwenChen

Description

@FuwenChen

🐛 The bug

500
useHead() was called without provide context, ensure you call it through the setup() function.

Customize this page
at injectHead (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/@unhead/vue/dist/shared/vue.BYLJNEcq.mjs?v=ed125ca9:26:9)
at useHead (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/@unhead/vue/dist/shared/vue.BYLJNEcq.mjs?v=ed125ca9:29:32)
at useHead (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt/dist/head/runtime/composables.js?v=ed125ca9:26:10)
at setup (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt-seo-utils/dist/runtime/app/plugins/titles.js?v=ed125ca9:29:5)
at https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt/dist/app/nuxt.js?v=631e3271:138:60
at fn (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt/dist/app/nuxt.js?v=631e3271:220:44)
at Object.runWithContext (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js?v=631e3271:4084:18)
at callWithNuxt (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt/dist/app/nuxt.js?v=631e3271:226:24)
at https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/nuxt/dist/app/nuxt.js?v=631e3271:37:41
at EffectScope.run (https://portal.local.ailawyers.cn/_nuxt/@fs/Users/developer/code/deli/front/deli-web-portal-front/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js?v=631e3271:67:16)

🛠️ To reproduce

🌈 Expected behavior

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions