error: nuxt instance unavailable at Module.useAsyncData
See original GitHub issueEnvironment
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¬ifications_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:
- Created 10 months ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having 26 dependencies in a project might not be a minimal reproduction for a potential dependency related issue 🤔 Maybe try to use stackblitz instead 💪
I suspect the issue is that some other problem is hiding it when you enable i18n.