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 instance unavailable at Module.useAsyncData

See original GitHub issue

Environment

Nuxi 3.0.0-rc.14-27796957.b60f136
Nuxt 3.0.0-rc.14-27796957.b60f136 with Nitro 0.6.1-27791756.086802d

Reproduction

https://github.com/Maxp777/nuxt4

Describe the bug

error: nuxt instance unavailable at Module.useNuxtApp

don’t know what i do when try to make a reproduction to https://github.com/nuxt/framework/issues/8738?notification_referrer_id=NT_kwDOBvheOLQ0NzY3MzM1MjMxOjExNjk0MDM0NA&notifications_query=is%3Adone#event-7764608394, but all not work again

Additional context

[log error] Error: nuxt instance unavailable
    at Module.useNuxtApp (/home/user/Downloads/nuxt-error-7-main/node_modules/nuxt/dist/app/nuxt.mjs:162:13)
    at Module.useAsyncData (/home/user/Downloads/nuxt-error-7-main/node_modules/nuxt/dist/app/composables/asyncData.mjs:28:38)
    at Module.useFetch (/home/user/Downloads/nuxt-error-7-main/node_modules/nuxt/dist/app/composables/fetch.mjs:52:43)
    at Proxy.updateList (/home/user/Downloads/nuxt-error-7-main/store/list.store.ts:25:27)
    at Proxy.<anonymous> (file:///home/user/Downloads/nuxt-error-7-main/node_modules/pinia/dist/pinia.mjs:1365:30)
    at update (/home/user/Downloads/nuxt-error-7-main/pages/index.vue:43:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async setup (/home/user/Downloads/nuxt-error-7-main/pages/index.vue:55:83) {} setup function
[Vue Router warn]: No match found for location with path "/api/test"

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dargmueslicommented, Nov 9, 2022

Having 26 dependencies in a project might not be a minimal reproduction for a potential dependency related issue 🤔 Maybe try to use stackblitz instead 💪

0reactions
danielroecommented, Nov 9, 2022

I suspect the issue is that some other problem is hiding it when you enable i18n.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Fetching · Get Started with Nuxt
This composable provides a convenient wrapper around useAsyncData and $fetch . It automatically generates a key based on URL and fetch options, ...
Read more >
FATAL Nuxt instance is unavailable - Stack Overflow
I've just pulled from repo, ran npm install and then i run npm run dev now i get the error FATAL Nuxt instance...
Read more >
Making Nuxt.js clone with Vue 3 and Vite (Vue Custom Server ...
Vite very fast bundler oriented EcmaScript Modules. ... For fetching data in Nuxt 3, you could see that useAsyncData is used, and I...
Read more >
Modules directory - Nuxt
Nuxt provides a higher-order module system that makes it possible to extend ... All modules will be called within context of the ModuleContainer...
Read more >
Nuxt 3 公式ドキュメント 日本語訳 - Zenn
Nuxt 3 は TypeScript と ECMAScript Modules をネイティブでサポートしています。 ... Throws an error if Nuxt instance is unavailable.
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