\n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3172,3175],{"name":3173,"color":3174},"pending triage","c2e0c6",{"name":3176,"color":3177},"need reproduction","CD234A",3271,"nuxt-modules","i18n","open","[WebStorm] Type error '__VLS_ctx.$t' is of type 'unknown'.","2025-07-04T14:54:08Z","https://github.com/nuxt-modules/i18n/issues/3271",0.63652694,{"description":3187,"labels":3188,"number":3190,"owner":3179,"repository":3180,"state":3181,"title":3191,"updated_at":3192,"url":3193,"score":3194},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v22.18.0`\n- Nuxt Version: `4.1.2`\n- CLI Version: `3.28.0`\n- Nitro Version: `2.12.6`\n- Package Manager: `npm@10.9.3`\n- Builder: `-`\n- User Config: `compatibilityDate`, `devtools`, `modules`, `i18n`\n- Runtime Modules: `@nuxtjs/i18n@10.1.0`, `@nuxt/test-utils/module@3.19.2`\n- Build Modules: `-`\n\n\n### Reproduction\n\n- Install and setup I18n module\n- Add Nuxt testing\n- Use a component with translation (`const {.t } = useI18n();`) in the `setup` part of the component\n\nThe error case is set up in this repository, after cloning and installing dependencies the test run shows the error.\n\nhttps://github.com/gaborsoos-byborg/nuxt-i18n-testing\n\n### Describe the bug\n\nWhen testing a component in Vitest with NuxtTestUtils, translating a string with `$t` works fine, but translating with `const { t } = useI18n();` fails with the following error\n\n```\nstderr | ../test/components/Content.test.ts > Content > should render\n[Vue warn]: Unhandled error during execution of setup function \n at \u003CMountSuspendedComponent > \n at \u003CMountSuspendedHelper> \n at \u003CAnonymous ref=\"VTU_COMPONENT\" > \n at \u003CVTUROOT>\n \nSyntaxError: Need to install with `app.use` function\n ❯ createCompileError ../node_modules/@intlify/message-compiler/dist/message-compiler.mjs:77:19\n 75| ? format((messages || errorMessages)[code] || '', ...(args || []))\n 76| : code;\n 77| const error = new SyntaxError(String(msg));\n | ^\n 78| error.code = code;\n 79| if (loc) {\n ❯ createI18nError ../node_modules/vue-i18n/dist/vue-i18n.mjs:61:12\n ❯ useI18n ../node_modules/vue-i18n/dist/vue-i18n.mjs:2143:15\n ❯ setup components/Content.vue:2:15\n ❯ wrappedSetup ../node_modules/@nuxt/test-utils/dist/runtime-utils/index.mjs:99:28\n ❯ clonedComponent.setup ../node_modules/@nuxt/test-utils/dist/runtime-utils/index.mjs:190:48\n ❯ callWithErrorHandling ../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:19\n ❯ setupStatefulComponent ../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7936:25\n ❯ setupComponent ../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7897:36\n ❯ mountComponent ../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5227:7\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3189],{"name":3173,"color":3174},3827,"Test fails when using translation outside of template","2025-09-23T09:46:41Z","https://github.com/nuxt-modules/i18n/issues/3827",0.64391756,{"description":3196,"labels":3197,"number":3200,"owner":3179,"repository":3180,"state":3181,"title":3201,"updated_at":3202,"url":3203,"score":3204},"### Environment\n\nnpx nuxi info\nWorking directory: C:/Users/senem/MEM22 nuxi 01:42:27\nNuxt project info: (copied to clipboard) nuxi 01:42:27\n\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v20.19.4\n- Nuxt Version: 3.17.7\n- CLI Version: 3.26.2\n- Nitro Version: 2.12.3\n- Package Manager: npm@10.8.2\n- Builder: -\n- User Config: compatibilityDate, devtools, ssr, app, pages, modules, css, postcss, supabase, vite, sourcemap, routeRules, nitro, site, sitemap, plugins, headers, i18n\n- Runtime Modules: @nuxtjs/i18n@10.0.3, @nuxt/eslint@1.6.0, @nuxt/icon@1.15.0, @nuxt/image@1.10.0, @nuxtjs/tailwindcss@6.14.0, @nuxtjs/supabase@1.5.3, @nuxtjs/sitemap@7.4.3\n- Build Modules: -\n------------------------------\n\n👉 Report an issue: https://github.com/nuxt/nuxt/issues/new?template=bug-report.yml\n👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new\n👉 Read documentation: https://nuxt.com\n\n### Reproduction\n\nhttps://github.com/EnsMsgLu/nuxt-i18n-issue\n\n### Describe the bug\n\nit doesnt working with subdomains \n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3198,3199],{"name":3173,"color":3174},{"name":3176,"color":3177},3767,"Its not working Home page on Subdomain","2025-07-31T10:28:33Z","https://github.com/nuxt-modules/i18n/issues/3767",0.65394276,{"description":3206,"labels":3207,"number":3209,"owner":3179,"repository":3180,"state":3181,"title":3210,"updated_at":3211,"url":3212,"score":3213},"### Environment\n\nThe issue is not happening in local, only on Vercel (preview and production env).\nBut still here are the local information:\n- Operating System: Windows_NT\n- Node Version: v22.17.0\n- Nuxt Version: 3.18.1\n- CLI Version: 3.28.0\n- Nitro Version: 2.12.4\n- Package Manager: yarn@4.9.2\n- Builder: -\n- User Config: app, ssr, nitro, components, image, plugins, build, typescript, modules, imports, runtimeConfig, ui, icon, i18n, vite, compatibilityDate, devtools, site, \nschemaOrg, ogImage\n- Runtime Modules: @nuxt/image@1.11.0, @nuxtjs/i18n@10.0.6, @nuxtjs/seo@3.1.0, @nuxt/ui@3.3.2, @nuxt/fonts@0.11.4, @nuxt/eslint@1.9.0\n- Build Modules: -\n\n\nOn the Vercel side, nothing has really been tweaked (no env variables), it takes the default config.\n\u003Cimg width=\"927\" height=\"550\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ba24b828-c014-4c83-994a-d199031ac827\" />\n\n### Reproduction\n\nHere is the repo where the issue is happening:\nhttps://github.com/PABERTHIER/atelier-libr-emotions\nFor this PR more precisely:\nhttps://github.com/PABERTHIER/atelier-libr-emotions/pull/22/files\n\nYou can find the nuxt-config here:\nhttps://github.com/PABERTHIER/atelier-libr-emotions/blob/main/nuxt.config.ts\n\nI can't put into production the issue since it will break the images rendering.\nBut you can find more information in the **Describe the bug** section.\n\n### Describe the bug\n\nI know that sounds weird because nuxtjs/i18n is not tied to NuxtImg / IPX / Vercel but still, the issue is only happening when I upgrade the nuxtjs/i18n package from 9.5.6 to 10.0.6.\nI've tried many things to resolve this issue but without success.\nI've checked all breaking changes and I don't think those have a direct impact to this issue.\nCould it be related to all new packages added / modified ?\nOr maybe something about I18n intercepting the route ?\n\nI know there already are some issues like this in the NuxtImg repo:\nhttps://github.com/nuxt/image/issues/1281\nBut still, I never experienced it since the migration to V10.\nWhen rollbacking to 9.5.6 the issue disappears so there is a direct link.\n\nFor the record, it is intentional to use IPX as the provider instead of Vercel.\n\nSince the upgrade, I'm getting 404 for images rendered with IPX:\n{error: {message: \"[404] [IPX_FILE_NOT_FOUND] File not found: /paintings/celestial-collision.jpg\"}}\n\n- **Before the upgrade**:\n\u003Cimg width=\"1016\" height=\"715\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ce265489-8260-4e83-9936-9a4a542be950\" />\n\n- **After the upgrade**:\n\u003Cimg width=\"1022\" height=\"352\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1f3f854b-ceee-41b0-935d-9fdaef11c21d\" />\n\u003Cimg width=\"1410\" height=\"196\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c93d82ec-735c-4485-95ac-eb8e816c367a\" />\n\u003Cimg width=\"666\" height=\"57\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f33f4988-4b44-4e0e-9bbe-c2ad7b91a07a\" />\n\n- **For the generated HTML**:\nBefore the upgrade:\n\u003Cimg width=\"1126\" height=\"136\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/41225aa1-a371-43f8-bb9b-14cc5307b515\" />\n\nAfter the upgrade:\n\u003Cimg width=\"1123\" height=\"103\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/8f47c7c9-ba34-4fe5-a83f-10712fc2876b\" />\n\n### Additional context\n\nIf you need more information, feel free to ask, I will do my best to provide anything useful.\nI'd happy to help.\nI wanted to point out that issue and try to understand what is really happening under the hood.\n\n### Logs\n\n```shell\n\n```",[3208],{"name":3173,"color":3174},3796,"Unable to display NuxtImg on Vercel when using the IPX provider since V10 migration","2025-08-23T12:16:49Z","https://github.com/nuxt-modules/i18n/issues/3796",0.6592727,{"description":3215,"labels":3216,"number":3218,"owner":3179,"repository":3180,"state":3181,"title":3219,"updated_at":3220,"url":3221,"score":3222},"### Environment\n\n- Operating System: Linux\n- Node Version: v20.19.0\n- Nuxt Version: 4.0.2\n- CLI Version: 3.27.0\n- Nitro Version: 2.12.4\n- Package Manager: npm@10.8.2\n- Builder: -\n- User Config: modules, $development, $production, devtools, css, mdc, runtimeConfig, routeRules, experimental, compatibilityDate, nitro, vite, hooks, eslint, fonts, i18n, icon, image, shadcn, supabase, tiptap\n- Runtime Modules: @sentry/nuxt/module@9.42.1, @nuxtjs/color-mode@3.5.2, @nuxtjs/tailwindcss@7.0.0-beta.0, shadcn-nuxt@2.2.0, @nuxtjs/i18n@10.0.3, @nuxtjs/supabase@1.6.0, @nuxt/icon@1.15.0, @nuxt/eslint@1.7.1, nuxt-tiptap-editor@2.3.1, @nuxtjs/mdc@0.17.2, @vueuse/nuxt@13.6.0, @nuxt/image@1.10.0, @nuxt/fonts@0.11.4, nuxt-time@1.0.3, @nuxt/icon@1.15.0, @nuxtjs/leaflet@1.3.2\n- Build Modules: -\n\n### Reproduction\n\nhttps://github.com/Chrissi2812/nuxt_bug_reports/tree/i18n/types-router\n--- Or ---\nhttps://stackblitz.com/edit/github-9m9yc3ub\n\n\u003Cimg width=\"502\" height=\"411\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f725bb5d-c55d-4200-b26b-8d76338624b0\" />\n\n### Describe the bug\n\nWith the default settings and `experimental.typedPages: true` the generated types are not correctly picked up.\n\nIf I rename `RouteNamedMapI18n` to `RouteNamedMap` the types are available.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3217],{"name":3173,"color":3174},3771,"useRoute needs suffix to work","2025-08-05T16:28:06Z","https://github.com/nuxt-modules/i18n/issues/3771",0.68173593,{"description":3224,"labels":3225,"number":3227,"owner":3179,"repository":3180,"state":3181,"title":3228,"updated_at":3229,"url":3230,"score":3231},"### Environment\n\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v22.17.0\n- Nuxt Version: 4.1.2\n- CLI Version: 3.28.0\n- Nitro Version: 2.12.5\n- Package Manager: pnpm@10.17.0\n- Builder: -\n- User Config: sourcemap, hub, app, imports, compatibilityDate, devtools, modules, i18n, eslint, primevue\n- Runtime Modules: @nuxt/eslint@1.9.0, @vueuse/nuxt@13.9.0, @unocss/nuxt@66.5.1, @primevue/nuxt-module@4.3.9, @nuxtjs/i18n@10.0.6, @nuxthub/core@0.9.0\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nhttps://github.com/s3xysteak/repro-nuxt-i18n\n\n### Describe the bug\n\nWhen using custom messages (plz check `nuxt.config.ts`.i18n and `i18n/i18n.config.ts`), it looks good on dev, but throw error on prod.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\nFailed to load messages for locale \"en\" FetchError: [GET] \"/_i18n/KWmwzEHP/en/messages.json\": 500 Server Error\n```",[3226],{"name":3173,"color":3174},3830,"Using custom messages reports error `Failed to load messages .... _i18n/x/xx/messages.json\": 500 Server Error` on prod but no error on dev","2025-09-26T15:52:35Z","https://github.com/nuxt-modules/i18n/issues/3830",0.6853177,{"description":3233,"labels":3234,"number":3236,"owner":3179,"repository":3180,"state":3237,"title":3238,"updated_at":3239,"url":3240,"score":3241},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v20.10.0`\n- Nuxt Version: `3.15.4`\n- CLI Version: `3.21.1`\n- Nitro Version: `2.10.4`\n- Package Manager: `yarn@1.22.22`\n- Builder: `-`\n- User Config: `compatibilityDate`, `devtools`, `css`, `vite`, `modules`, `i18n`\n- Runtime Modules: `@nuxtjs/i18n@9.2.1`\n- Build Modules: `-`\n\n\n\n\n### Reproduction\n\nI'm getting the below error when deploying on GitHub pages.\n\n\n[build](https://github.com/SalvoLunar/nuxtpagestest/actions/runs/13653748242/job/38167990431#step:8:105)\nProcess completed with exit code 1.\n\n\n\n\n\n\nUse this repository as minimal reproduction environment: https://github.com/SalvoLunar/nuxtpagestest\n\nTry to deploy on GitHub pages.\n\nYou'll get this error:\n\n_ctx.$t is not a function\n\nWhich seems to be related to the i18n plugin for nuxt\n\n\n\n\n\n\n\n\n\n### Describe the bug\n\nWhen deploying my Nuxt Project on github pages I get this error:\n\nError: [nitro] [unhandledRejection] _ctx.$t is not a function\n\n\nThe project generate correctly on my mac using yarn generate\n\n\n### Additional context\n\nThis is my package.json\n\n{\n \"name\": \"nuxt-app\",\n \"private\": true,\n \"type\": \"module\",\n \"scripts\": {\n \"build\": \"nuxt build\",\n \"dev\": \"nuxt dev\",\n \"generate\": \"nuxt generate\",\n \"preview\": \"nuxt preview\",\n \"postinstall\": \"nuxt prepare\"\n },\n \"dependencies\": {\n \"@nuxtjs/i18n\": \"^9.2.1\",\n \"@tailwindcss/vite\": \"^4.0.6\",\n \"eslint\": \"^9.21.0\",\n \"nuxt\": \"^3.15.4\",\n \"sass\": \"^1.85.0\",\n \"tailwindcss\": \"^4.0.6\",\n \"typescript\": \"^5.8.2\",\n \"typescript-eslint\": \"^8.26.0\",\n \"vue\": \"latest\",\n \"vue-router\": \"latest\"\n }\n}\n\n\n\n\n### Logs\n\n```shell\nRun yarn run generate\n yarn run generate\n shell: /usr/bin/bash -e {0}\n env:\n GITHUB_PAGES: true\nyarn run v1.22.22\n$ nuxt generate\n[log] [nuxi] Nuxt 3.15.4 with Nitro 2.10.4\n[info] [nuxt] Using `2024-04-03` as fallback compatibility date.\n[info] [nuxi] Building for Nitro preset: `static`\n[info] Building client...\n[info] vite v6.1.0 building for production...\n[info] transforming...\n[info] ✓ 114 modules transformed.\n[info] rendering chunks...\n[info] computing gzip size...\n[info] .nuxt/dist/client/manifest.json 1.26 kB │ gzip: 0.33 kB\n[info] .nuxt/dist/client/_nuxt/error-500.dGVH929u.css 1.88 kB │ gzip: 0.72 kB\n[info] .nuxt/dist/client/_nuxt/error-404.C3V-3Mc4.css 3.56 kB │ gzip: 1.10 kB\n[info] .nuxt/dist/client/_nuxt/entry.CcO6HMxk.css 3.82 kB │ gzip: 0.80 kB\n[info] .nuxt/dist/client/_nuxt/Drgu6tN-.js 0.38 kB │ gzip: 0.27 kB\n[info] .nuxt/dist/client/_nuxt/B6sXxbYA.js 3.41 kB │ gzip: 1.53 kB\n[info] .nuxt/dist/client/_nuxt/DhAUtIem.js 9.44 kB │ gzip: 3.77 kB\n[info] .nuxt/dist/client/_nuxt/DTI2uela.js 169.20 kB │ gzip: 62.32 kB\n[info] ✓ built in 1.86s\n[success] Client built in 1875ms\n[info] Building server...\n[info] vite v6.1.0 building SSR bundle for production...\n[info] transforming...\n[info] ✓ 58 modules transformed.\n[info] rendering chunks...\n[info] .nuxt/dist/server/_nuxt/rsvp-styles.CttwTQ2R.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/languageSelector-styles.DQbn0s-Y.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/location-styles.BlzjIDsJ.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/hero-styles.CcH_T3i_.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/error-404-styles.PedwCpCK.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/error-500-styles.K0bbvuT_.mjs 0.08 kB\n[info] .nuxt/dist/server/_nuxt/hero-styles.BlrCqToi.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/location-styles.268T3OaE.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/rsvp-styles.CAfEz6Gs.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/languageSelector-styles.DSHVr56e.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/error-404-styles.B5yeQDbX.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/error-500-styles.HhVXVi60.mjs 0.15 kB\n[info] .nuxt/dist/server/_nuxt/entry-styles.HDozuf_h.mjs 0.28 kB\n[info] .nuxt/dist/server/styles.mjs 1.84 kB\n[info] .nuxt/dist/server/_nuxt/entry-styles-1.mjs-3YZljDCr.js 0.61 kB │ map: 0.11 kB\n[info] .nuxt/dist/server/_nuxt/index-C2merokO.js 0.98 kB │ map: 6.88 kB\n[info] .nuxt/dist/server/_nuxt/entry-styles-4.mjs-DT7PuAmE.js 1.13 kB │ map: 0.11 kB\n[info] .nuxt/dist/server/_nuxt/entry-styles-3.mjs-Chp7cSni.js 1.19 kB │ map: 0.11 kB\n[info] .nuxt/dist/server/_nuxt/entry-styles-2.mjs-DemNg9Cl.js 1.71 kB │ map: 0.11 kB\n[info] .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-Bj5KKHbJ.js 2.10 kB │ map: 0.12 kB\n[info] .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-COU7bu3q.js 3.77 kB │ map: 0.12 kB\n[info] .nuxt/dist/server/_nuxt/error-500-A0s4x7rx.js 4.60 kB │ map: 5.36 kB\n[info] .nuxt/dist/server/_nuxt/error-404-WbywfVLw.js 14.20 kB │ map: 26.49 kB\n[info] .nuxt/dist/server/server.mjs 34.88 kB │ map: 81.85 kB\n[info] ✓ built in 582ms\n[success] Server built in 586ms\n[info] [nitro] Initializing prerenderer\n[info] [nitro] Prerendering 3 initial routes with crawler\nError: [unhandledRejection] _ctx.$t is not a function\n at _sfc_ssrRender$3 (.nuxt/prerender/chunks/build/server.mjs:804:189)\n at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:444:9)\n at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)\n at ssrRenderComponent (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:86:10)\n at _sfc_ssrRender (.nuxt/prerender/chunks/build/server.mjs:850:9)\n at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:444:9)\n at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)\n at ssrRenderComponent (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:86:10)\n at default (.nuxt/prerender/chunks/build/server.mjs:931:19)\n at ssrRenderSuspense (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:224:5)\nError: [nitro] [unhandledRejection] _ctx.$t is not a function\n at _sfc_ssrRender$3 (.nuxt/prerender/chunks/build/server.mjs:804:189)\n at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:444:9)\n at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)\n at ssrRenderComponent (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:86:10)\n at _sfc_ssrRender (.nuxt/prerender/chunks/build/server.mjs:850:9)\n at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:444:9)\n at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:394:12)\n at ssrRenderComponent (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:86:10)\n at default (.nuxt/prerender/chunks/build/server.mjs:931:19)\n at ssrRenderSuspense (node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:224:5)\n[log] [nitro] ├─ /200.html (44ms)\n[log] [nitro] ├─ /404.html (45ms)\n[log] [nitro] ├─ / (54ms)\n │ └── [500] \n[log] [nitro] \nErrors prerendering:\n[log] [nitro] ├─ / (54ms)\n │ └── [500] \n[log] [nitro]\nError: Exiting due to prerender errors.\n at prerender (node_modules/nitropack/dist/core/index.mjs:2054:11)\n at async node_modules/nuxt/dist/shared/nuxt.CrJjphBv.mjs:4266:5\n at async build (node_modules/nuxt/dist/shared/nuxt.CrJjphBv.mjs:6645:3)\n at async Object.run (node_modules/@nuxt/cli/dist/chunks/build.mjs:74:5)\n at async Object.run (node_modules/@nuxt/cli/dist/chunks/generate.mjs:33:5)\n at async runCommand (node_modules/citty/dist/index.mjs:316:16)\n at async runCommand (node_modules/citty/dist/index.mjs:307:11)\n at async runMain (node_modules/citty/dist/index.mjs:445:7) \n\nError: Exiting due to prerender errors.\nerror Command failed with exit code 1.\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\nError: Process completed with exit code 1.\n```",[3235],{"name":3173,"color":3174},3390,"closed","Error: [unhandledRejection] _ctx.$t is not a function","2025-07-20T22:55:17Z","https://github.com/nuxt-modules/i18n/issues/3390",0.5854325,{"description":3243,"labels":3244,"number":3251,"owner":3179,"repository":3180,"state":3237,"title":3252,"updated_at":3253,"url":3254,"score":3255},"### Environment\n\n- Operating System: Windows_NT\n- Node Version: v23.10.0\n- Nuxt Version: 3.17.4\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: pnpm@8.15.9\n- Builder: -\n- User Config: devtools, modules, i18n, compatibilityDate\n- Runtime Modules: @nuxtjs/i18n@9.5.5\n- Build Modules: -\n\n### Reproduction\n\nhttps://github.com/warflash/nuxt-i18n-rolldown\n\n### Describe the bug\n\nBuilds are failing\n\n### Additional context\n\n[Rolldown vite was just announced as technical preview,](https://voidzero.dev/posts/announcing-rolldown-vite) so I wanted to jump in and test against our project. Dev works well, builds seem to fail, also on the i18n starter with the override applied.\n\nGiven that vite-rolldown aims to be a drop in replacement it might just need time for the vite team to iron out the cause of this bug. Just wanted to raise the issue in case it's some internal tooling in the i18n project that won't be compatible with vite in the future.\n\n### Logs\n\n```shell\n> nuxt build\n\n[nuxi 21:06:47] Nuxt 3.17.4 with Nitro 2.11.12\n\n[@nuxtjs/i18n 21:06:48] WARN bundle.optimizeTranslationDirective is enabled by default, we recommend disabling this feature as it causes issues and will be deprecated in v10.\nExplicitly setting this option to true or false disables this warning, for more details see: https://github.com/nuxt-modules/i18n/issues/3238#issuecomment-2672492536\n\n[nuxi 21:06:48] ℹ Building for Nitro preset: node-server\n[21:06:51] ℹ Building client...\n\n[21:06:51] WARN You have set optimizeDeps.esbuildOptions but this options is now deprecated. Vite now uses Rolldown to optimize the dependencies. Please use optimizeDeps.rollupOptions instead.\n\n[21:06:51] ℹ rolldown-vite v6.3.14 building for production...\n[21:06:52] ℹ ✓ 181 modules transformed.\n\n[21:06:52] ERROR ✗ Build failed in 531ms\n\n\n[nuxi 21:06:52] ERROR Nuxt Build Error: Build failed with 3 errors:\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/en.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/nl.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n[PARSE_ERROR] Error: Unexpected token\n ╭─[ i18n/locales/ja.json:1:1 ]\n │\n 1 │ const resource = {\n │ ──┬── \n │ ╰──── \n───╯\n\n\n at normalizeErrors (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:2195:18)\n at handleOutputErrors (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:3125:34)\n at transformToRollupOutput (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:3119:2)\n at RolldownBuild.write (/project/node_modules/.pnpm/rolldown@1.0.0-beta.10-commit.ac4e5db/node_modules/rolldown/dist/shared/src-r81e2JxS.mjs:4269:10)\n at async buildEnvironment (/project/node_modules/.pnpm/rolldown-vite@6.3.14_esbuild@0.25.5_jiti@2.4.2/node_modules/rolldown-vite/dist/node/chunks/dep-C0xpd56d.js:44464:16)\n at async buildClient (/project/node_modules/.pnpm/@nuxt+vite-builder@3.17.4_eslint@9.27.0_rollup@4.41.1_typescript@5.8.3_vue@3.5.16/node_modules/@nuxt/vite-builder/dist/shared/vite-builder.DNPjFC0L.mjs:765:5)\n at async bundle (/project/node_modules/.pnpm/@nuxt+vite-builder@3.17.4_eslint@9.27.0_rollup@4.41.1_typescript@5.8.3_vue@3.5.16/node_modules/@nuxt/vite-builder/dist/shared/vite-builder.DNPjFC0L.mjs:1527:3)\n at async bundle (/project/node_modules/.pnpm/nuxt@3.17.4_eslint@9.27.0_rolldown-vite@6.3.14_rollup@4.41.1_typescript@5.8.3/node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7387:5)\n at async build (/project/node_modules/.pnpm/nuxt@3.17.4_eslint@9.27.0_rolldown-vite@6.3.14_rollup@4.41.1_typescript@5.8.3/node_modules/nuxt/dist/shared/nuxt.Ipy8-4AT.mjs:7247:3)\n at async Object.run (/project/node_modules/.pnpm/@nuxt+cli@3.25.1/node_modules/@nuxt/cli/dist/chunks/build.mjs:74:5)\n```",[3245,3248],{"name":3246,"color":3247},"upstream","fbca04",{"name":3249,"color":3250},"workaround","1FD0A3",3659,"Builds with rolldown-vite + nuxt i18n fail","2025-09-09T11:08:33Z","https://github.com/nuxt-modules/i18n/issues/3659",0.63642555,{"description":3257,"labels":3258,"number":3260,"owner":3179,"repository":3180,"state":3237,"title":3261,"updated_at":3262,"url":3263,"score":3264},"### Environment\n\nReproduction env:\n- Operating System: Linux\n- Node Version: v20.19.1\n- Nuxt Version: 3.17.5\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: pnpm@8.15.6\n- Builder: -\n- User Config: modules, future, compatibilityDate, devtools, i18n\n- Runtime Modules: @nuxtjs/i18n@10.0.0-rc.1\n- Build Modules: -\n\nLocal dev env:\n- Operating System: Linux\n- Node Version: v22.16.0\n- Nuxt Version: 3.17.5\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.13\n- Package Manager: pnpm@10.12.4\n- Builder: -\n- User Config: modules, future, compatibilityDate, devtools, experimental, plugins, css, app, nitro, router, routeRules, runtimeConfig, fonts, i18n, icon, image, pwa, robots, security, typescript, vite, webVitals\n- Runtime Modules: nuxt-security@2.2.0, @pinia/nuxt@0.11.1, @nuxtjs/i18n@10.0.0-rc.1, @nuxtjs/robots@5.2.11, @nuxt/content@3.6.1, @nuxt/fonts@0.11.4, @nuxt/icon@1.15.0, @nuxt/image@1.10.0, @nuxtjs/color-mode@3.5.2, @vueuse/nuxt@13.4.0, @vueuse/motion/nuxt@3.0.3, @vite-pwa/nuxt@1.0.4, @nuxtjs/web-vitals@0.2.7, @nuxt/eslint@1.4.1, @nuxt/test-utils/module@3.19.1\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-jjpn8kps\n\nRun `pnpm typecheck` after installing dependencies (`pnpm install`), and see the error.\n\n### Describe the bug\n\nThe next i18n implementation breaks types augmentation, for example, defining PageMeta additional props leads to TS error:\n// auth.d.ts\n```ts\ntype AccountRoleType = 'admin' | 'user'\n\ndeclare module '#app' {\n interface PageMeta {\n roles?: AccountRoleType[]\n }\n}\n\nexport {}\n```\nand in middleware/auth.ts\n```ts\nexport default defineNuxtRouteMiddleware(async (to) => {\n if (!to.meta.roles?.includes('admin')) {\n throw createError({\n statusCode: 404,\n message: 'Not found',\n fatal: true,\n })\n }\n})\n```\n\nleads to this TS error:\n```\nerror TS2339: Property 'includes' does not exist on type '{}'.\n```\n\n### Additional context\n\nIf I remember correctly, nuxt/i18n module v10.0.0-beta.1 was working correctly. A couple of days ago I tried beta.10 and today - rc.1, and such TS error start throwing.\n\n### Logs\n\n```shell\npnpm typecheck\n\n> nuxt-app@ typecheck /home/projects/github-jjpn8kps\n> nuxi typecheck\n\n\n[2:28:51 PM] ERROR (node:19) ExperimentalWarning: WASI is an experimental feature and might change at any time\n(Use node --trace-warnings ... to show where the warning was created)\n\n\n WARN Slow module @nuxt/devtools took 23273.91ms to setup. 2:29:30 PM\n\nℹ Running with compatibility version 4 nuxt 2:29:41 PM\napp/middleware/auth.ts:2:23 - error TS2339: Property 'includes' does not exist on type '{}'.\n\n2 if (!to.meta.roles?.includes('admin')) {\n ~~~~~~~~\n\n\nFound 1 error in app/middleware/auth.ts:2\n\n\n ERROR Process exited with non-zero status (2) 2:30:30 PM\n\n at new x (node_modules/.pnpm/tinyexec@1.0.1/node_modules/tinyexec/dist/main.js:440:5)\n at R._waitForOutput (node_modules/.pnpm/tinyexec@1.0.1/node_modules/tinyexec/dist/main.js:548:13)\n at async Object.run (node_modules/.pnpm/@nuxt+cli@3.25.1/node_modules/@nuxt/cli/dist/chunks/typecheck.mjs:60:7)\n at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:337:16)\n at async runCommand (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:328:11)\n at async Module.runMain (node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs:466:7) \n\n\n\n ERROR Process exited with non-zero status (2) 2:30:30 PM\n\n ELIFECYCLE Command failed with exit code 1.\n```",[3259],{"name":3173,"color":3174},3713,"[v10.0.0-rc.1] Breaks PageMeta augmentation","2025-06-30T19:00:03Z","https://github.com/nuxt-modules/i18n/issues/3713",0.6370706,{"description":3266,"labels":3267,"number":3272,"owner":3179,"repository":3180,"state":3237,"title":3273,"updated_at":3274,"url":3275,"score":3276},"### Environment\n\n- Operating System: Darwin\n- Node Version: v24.5.0\n- Nuxt Version: 4.0.3\n- CLI Version: 3.28.0\n- Nitro Version: 2.12.4\n- Package Manager: bun@1.2.20\n- Builder: -\n- User Config: modules, devtools, app, hooks, components, compatibilityDate, i18n, vite\n- Runtime Modules: @nuxt/eslint@1.8.0, @nuxt/test-utils/module@3.19.2\n- Build Modules: -\n\n(I am using a nuxt layer which configures the i18n module so I suspect that's the reason the module does not show up above)\n\n### Reproduction\n\nUnfortunately did not manage to create a reliable reproduction 😕\n\n### Describe the bug\n\nHello 👋,\n\nsince updating to the new version v10.0.4 I am having a problem with the i18n module. It seems the global `$t` instance is not available as I get the following error message: `ReferenceError: $t is not defined`.\n\nUnfortunately I wasn't able to create a minimal reproduction in stackblitz, so it must be something specific to my project that is causing this. Do you maybe have an idea what might be the issue or what I could check, based on the changes you did in v10.0.4?\n\nI am using the `$t` instance directly in my script setup block in a component and in there the error is thrown:\n```vue\n\u003Cscript setup lang=\"ts\">\n const test = computed(()=> $t('test'))\n\u003C/script>\n\n\u003Ctemplate>\n \u003Cspan>{{ test }}\u003C/span>\n\u003C/template>\n```\n\nIs this an anti-pattern and the `useI18n` composable should be used instead? I was using the global `$t` instance directly since it saved a line of code and worked up to v10.0.3.\n\nI can't share the full project as it is work-related but here are some additional informations about my setup:\n- Nuxt layers: the i18n module is set-up in a \"core\" layer and all other layers and the main app extend from it\n- Multiple translation files: one i18n folder per layer with layer-specific translations\n- I am not using any `i18n.config.ts` files\n\nSorry for the non-existant repro and minimal info but maybe you have an idea what I could try. Thanks. 🙏\n\n### Additional context\n\n### package.json\n```\n{\n \"name\": \"a-project\",\n \"private\": true,\n \"type\": \"module\",\n \"engines\": {\n \"node\": \"22.x\"\n },\n \"scripts\": {\n \"build\": \"nuxt build\",\n \"dev\": \"nuxt dev\",\n \"dev:host\": \"nuxt dev --host\",\n \"start\": \"node .output/server/index.mjs\",\n \"generate\": \"nuxt generate\",\n \"preview\": \"nuxt preview\",\n \"postinstall\": \"nuxt prepare\",\n \"test\": \"vitest run\",\n \"test:coverage\": \"vitest run --coverage\",\n \"lint\": \"eslint .\",\n \"lint:fix\": \"eslint . --fix\",\n \"prettier\": \"prettier --write .\",\n \"typecheck\": \"nuxt typecheck\"\n },\n \"dependencies\": {\n \"@iconify-json/lucide\": \"^1.2.62\",\n \"@nuxt/image\": \"^1.11.0\",\n \"@nuxt/ui\": \"^3.3.0\",\n \"@nuxtjs/i18n\": \"10.0.4\",\n \"@samk-dev/nuxt-vcalendar\": \"^1.0.4\",\n \"@tanstack/vue-query\": \"^5.83.1\",\n \"@vueuse/core\": \"^13.6.0\",\n \"dayjs\": \"^1.11.13\",\n \"dayjs-nuxt\": \"^2.1.11\",\n \"nuxt\": \"^4.0.3\",\n \"nuxt-auth-sanctum\": \"^1.1.2\",\n \"nuxt-charts\": \"^0.2.3\",\n \"nuxt-viewport\": \"^2.3.1\",\n \"v-calendar\": \"^3.1.2\",\n \"vue\": \"^3.5.18\",\n \"vue-router\": \"^4.5.1\",\n \"zod\": \"^4.0.17\"\n },\n \"devDependencies\": {\n \"@nuxt/eslint\": \"^1.8.0\",\n \"@nuxt/test-utils\": \"^3.19.2\",\n \"@tanstack/eslint-plugin-query\": \"^5.83.1\",\n \"@types/node\": \"^24.2.1\",\n \"@vue/test-utils\": \"^2.4.6\",\n \"eslint\": \"^9.33.0\",\n \"eslint-config-prettier\": \"^10.1.8\",\n \"happy-dom\": \"^18.0.1\",\n \"prettier\": \"^3.6.2\",\n \"prettier-plugin-organize-imports\": \"^4.2.0\",\n \"prettier-plugin-tailwindcss\": \"^0.6.14\",\n \"typescript\": \"^5.9.2\",\n \"vitest\": \"^3.2.4\",\n \"vue-tsc\": \"^3.0.5\"\n },\n \"patchedDependencies\": {\n \"@samk-dev/nuxt-vcalendar@1.0.4\": \"patches/@samk-dev%2Fnuxt-vcalendar@1.0.4.patch\"\n }\n}\n```\n\n### nuxt.config.ts\n```ts\nexport default defineNuxtConfig({\n // ...,\n i18n: {\n locales: [\n { code: 'de', file: 'de.app.json' },\n { code: 'en', file: 'en.app.json' },\n ],\n defaultLocale: 'de',\n strategy: 'no_prefix',\n experimental: {\n typedOptionsAndMessages: 'default',\n },\n },\n})\n```\n\n### Logs\n\n```shell\n\n```",[3268,3269],{"name":3176,"color":3177},{"name":3270,"color":3271},"possible regression","B78041",3775,"\"$t is not defined\" after updating to v10.0.4","2025-08-12T14:18:23Z","https://github.com/nuxt-modules/i18n/issues/3775",0.638482,["Reactive",3278],{},["Set"],["ShallowReactive",3281],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fku_SZ7T2v5No17H1hq0f7HPza5Ad2sY0LsGxXCillJY":-1},"/nuxt-modules/i18n/3755"]