question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR [nuxt:imports-transform] [unimport] failed to find "useMeta" imported from "#imports"

See original GitHub issue

Environment



 WARN  Using experimental payload extraction for full-static output. You can opt-out by setting experimental.payloadExtraction to false.

ℹ Using Tailwind CSS from ~/assets/css/tailwind.css              nuxt:tailwindcss 16:45:07

 ERROR  [nuxt:imports-transform] [unimport] failed to find "useMeta" imported from "#imports"
file: /Users/mac/.webcode/gin-nuxt/web/node_modules/@vueuse/nuxt/ssr-plugin.mjs


 ERROR  [unimport] failed to find "useMeta" imported from "#imports"              16:45:13

  at node_modules/unimport/dist/shared/unimport.d5d80c71.mjs:782:17
  at Array.forEach (<anonymous>)
  at node_modules/unimport/dist/shared/unimport.d5d80c71.mjs:779:44
  at Array.forEach (<anonymous>)
  at detectImports (node_modules/unimport/dist/shared/unimport.d5d80c71.mjs:777:20)
  at async injectImports (node_modules/unimport/dist/shared/unimport.d5d80c71.mjs:804:44)
  at async Object.transform (node_modules/nuxt/dist/index.mjs:1107:21)
  at async transform (node_modules/rollup/dist/es/shared/rollup.js:21734:16)
  at async ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/rollup.js:21959:30)



Reproduction

“nuxt”: “^3.0.0”,

Describe the bug

config:

    vueuse: {
        ssrHandlers: true,
    },

when upgrade to “nuxt”: “^3.0.0”

npm run generate … show error…

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Vincebecommented, Nov 17, 2022
1reaction
isimmonscommented, Nov 17, 2022

I believe useMeta was replaced with useHead SEO and Meta

Also a heads up, useBody renamed to readBody and useCookies renamed to parseCookies in case you run into those two.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to unimport a python module which is already imported?
There's no way to unload something once you've imported it. Python keeps a copy of the module in a cache, so the next...
Read more >
最權威的養生常識網 - 元氣
nuxt3正式版useMeta报错 ERROR [nuxt:imports-transform] [unimport] failed to find "useMeta" imported,userMeta报错. 2022-11-19 9 閱讀. 2022-11-19.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found