s00d / nuxt-i18n-micro

Nuxt I18n Micro is a fast, simple, and lightweight internationalization (i18n) module for Nuxt
https://s00d.github.io/nuxt-i18n-micro/
MIT License
87 stars 11 forks source link

404 error #23

Closed rcerljenko closed 1 month ago

rcerljenko commented 1 month ago

Hi there!

I've come to an error when accessing route that doesn't exist, eg: /foo. It should show nuxt default error page but instead it throws 500 with this stack trace:

[nuxt] [request error] [unhandled] [500] Error
  at createRouterError (./node_modules/vue-router/dist/vue-router.mjs:968:23)  
  at Object.resolve (./node_modules/vue-router/dist/vue-router.mjs:1618:23)  
  at Object.resolve (./node_modules/vue-router/dist/vue-router.mjs:3181:38)  
  at getLocalizedRoute (./chunks/build/server.mjs:2026:17)  
  at localeRoute (./chunks/build/server.mjs:2127:16)  
  at ComputedRefImpl.fn (./chunks/build/TLink-CI_YhY0Q.mjs:327:57)  
  at refreshComputed (./node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:355:28)  
  at get value [as value] (./node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:1550:5)  
  at unref (./node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js:1406:29)  
  at ./chunks/build/TLink-CI_YhY0Q.mjs:332:13
s00d commented 1 month ago
image

Hello. Everything works without any issues on my project, please provide an example.

rcerljenko commented 1 month ago

yes here it is:

https://nuxt3-vercel-kjvo903w0-lloyds-digital.vercel.app

s00d commented 1 month ago

I need access to the code to understand something.

s00d commented 1 month ago

Closing due to no response.