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.

i18n/useRouter/useNuxtApp - Error nuxt instance unavailable

See original GitHub issue

Environment

  • 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:closed
  • Created a year ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
melrefaiecommented, Aug 3, 2022

yes same problem

0reactions
danielroecommented, Aug 4, 2022

The fix is not available in RC6. See here for edge channel: https://v3.nuxtjs.org/guide/going-further/edge-channel.

Read more comments on GitHub >

github_iconTop 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 >
Nuxt Instance Unavailable throw error - StackBlitz
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8.
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 >

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