i18n/useRouter/useNuxtApp - Error nuxt instance unavailable
See original GitHub issueEnvironment
- Operating System:
Linux
- Node Version:
v16.16.0
- Nuxt Version:
3.0.0-rc.6
- Package Manager:
npm@8.11.0
- Builder:
vite
- User Config:
css
,head
,i18n
,modules
,target
,telemetry
,titleTemplate
- Runtime Modules:
@nuxtjs/i18n@8.0.0-alpha.0-27654621.987d743
- Build Modules:
-
Reproduction
https://github.com/max5432112345/nuxt-error-1
Describe the bug
I18n with strategy: ‘prefix’ not work, but without that property work
Additional context
No response
Logs
[nitro] [dev] [unhandledRejection] Error: nuxt instance unavailable
at Module.useNuxtApp (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:415:13)
at useRouter (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:1168:32)
at Module.navigateTo (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:1207:18)
at Module.navigate (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:10818:34)
at file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:3139:27
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.callAsync (file:///Downloads/nuxt3/nuxt-app/node_modules/unctx/dist/index.mjs:45:16)
at async applyPlugin (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:347:23)
at async Module.applyPlugins (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:357:5)
at async createNuxtAppServer (file:///Downloads/nuxt3/nuxt-app/.nuxt/dist/server/server.mjs:46:7)
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
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 >Modules directory - Nuxt
Error : An unhandled error when calling hooks. nuxt.hook('error', async error => { // Your custom code here }). Close: Nuxt instance is...
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 FreeTop 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
Top GitHub Comments
yes same problem
The fix is not available in RC6. See here for edge channel: https://v3.nuxtjs.org/guide/going-further/edge-channel.