\n 176 ┃ {{ item.label }}\n 177 ┃ \u003C/UButton>\n\n ⁃ at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9) \n ⁃ at renderComponentVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:686:12) \n ⁃ at ssrRenderComponent (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:100:10) \n ⁃ at _sfc_ssrRender (/project/layouts/default.vue:28:41) \n ⁃ at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9) \n ⁃ at renderVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:801:14) \n ⁃ at callWithNuxt (/project/node_modules/nuxt/dist/app/nuxt.js:225:24)\n\n[CAUSE]\nTypeError {\n message: '_ctx.$t is not a function',\n stack: '_ctx.$t is not a function\\n' +\n 'at _sfc_ssrRender (/project/components/Navigation.vue:175:15)\\n' +\n 'at renderComponentSubTree (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:737:9)\\n' +\n 'at renderComponentVNode (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:686:12)\\n' +\n 'at ssrRenderComponent (/project/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:100:10)\\n' +\n 'at _sfc_ssrRender (/project/layouts/default.vue:28:41)\\n' +\n '...'\n}\n```\n\n\nHence I can't start the whole application.\n\nI tried to reproduce it in the stackblitz, but all works fine there. Maybe it has something to do with my envirnoment as I deleted all .nuxt files and also removed all node modules/reinstalled them\n\n\n### Additional context\n\n\nAlso I have a previous error which then causes the application to crash:\n```\n WARN [Vue warn]: Property \"$t\" was accessed during render but is not defined on instance. 14:28:44 \n at \u003CHeaderBar>\n at \u003CDefault ref=Ref\u003C undefined > >\n at \u003CAsyncComponentWrapper ref=Ref\u003C undefined > >\n at \u003CLayoutLoader key=\"default\" layoutProps={\n ref: RefImpl {\n dep: Dep {\n computed: undefined,\n version: 0,\n activeLink: undefined,\n subs: undefined,\n map: undefined,\n key: undefined,\n sc: 0,\n __v_skip: true,\n subsHead: undefined\n },\n __v_isRef: true,\n __v_isShallow: true,\n _rawValue: undefined,\n _value: undefined\n }\n } name=\"default\" >\n at \u003CNuxtLayoutProvider layoutProps={\n ref: RefImpl {\n dep: Dep {\n computed: undefined,\n version: 0,\n activeLink: undefined,\n subs: undefined,\n map: undefined,\n key: undefined,\n sc: 0,\n __v_skip: true,\n subsHead: undefined\n },\n __v_isRef: true,\n __v_isShallow: true,\n _rawValue: undefined,\n _value: undefined\n }\n } key=\"default\" name=\"default\" ... >\n at \u003CNuxtLayout>\n at \u003CError error=(0 , __vite_ssr_import_0__.getApps) is not a function\n\n at ensureAdminApp (/app/node_modules/vuefire/dist/server/index.mjs:36:41)\n at /app/node_modules/nuxt-vuefire/dist/runtime/admin/plugin.server.js:12:68\n at /app/node_modules/nuxt/dist/app/nuxt.js:156:60\n at fn (/app/node_modules/nuxt/dist/app/nuxt.js:233:44)\n at Object.callAsync (/app/node_modules/unctx/dist/index.mjs:68:55)\n at /app/node_modules/nuxt/dist/app/nuxt.js:236:56\n at Object.runWithContext (/app/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4002:18)\n at callWithNuxt (/app/node_modules/nuxt/dist/app/nuxt.js:236:24)\n at /app/node_modules/nuxt/dist/app/nuxt.js:55:41\n at EffectScope.run (/app/node_modules/@vue/reactivity/dist/reactivity.cjs.js:85:16) >\n at \u003CNuxtRoot>\n\n[nuxt-app] vue:error: 9.872ms 14:28:44 \n[nuxt-app] app:error: 0.022ms 14:28:44 \n[nitro-runtime] error: 0.571ms\n```\n\nWhen I remove nuxt-vuefire. It works again, no error on startup.\n\nWhen I downgrade to 9.5.6 for the i18n module, it works too even with nuxt-vuefire and even with it throwing an error directly\n\n### Logs\n\n```shell\n\n```",[3172],{"name":3173,"color":3174},"pending triage","c2e0c6",3755,"nuxt-modules","i18n","open","_ctx.$t is not a function","2025-07-23T13:58:47Z","https://github.com/nuxt-modules/i18n/issues/3755",0.5870528,{"description":3184,"labels":3185,"number":3190,"owner":3176,"repository":3177,"state":3178,"title":3191,"updated_at":3192,"url":3193,"score":3194},"### Environment\n\n------------------------------\n- Operating System: Darwin\n- Node Version: v22.11.0\n- Nuxt Version: 3.14.1592\n- CLI Version: 3.17.1\n- Nitro Version: 2.10.4\n- Package Manager: npm@10.9.0\n- Builder: -\n- User Config: default\n- Runtime Modules: @pinia/nuxt@0.9.0, @nuxt/eslint@0.7.4, @nuxtjs/i18n@9.1.1\n- Build Modules: -\n------------------------------\n\n```ts\nexport default defineNuxtConfig({\n compatibilityDate: \"2024-11-01\",\n devtools: { enabled: true },\n\n modules: [\"@pinia/nuxt\", \"@nuxt/eslint\", \"@nuxtjs/i18n\"],\n i18n: {\n debug: true,\n types: 'composition',\n strategy: 'no_prefix',\n defaultLocale: 'en',\n lazy: true,\n langDir: 'locales',\n locales: [\n {\n name: 'English',\n code: 'en',\n language: 'en-GB',\n file: 'en-GB.json',\n },\n ],\n },\n\n future: {\n compatibilityVersion: 4,\n },\n```\n\n### Reproduction\n\nI don't know how reproduce this problem in online services\n\n### Describe the bug\n\nWith this configuration on a clean project I get this typing error: `'__VLS_ctx.$t' is of type 'unknown'.`\n\n\u003Cimg width=\"916\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/17be6c4d-fc51-4352-adc5-78db230f7ef0\" />\n\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3186,3187],{"name":3173,"color":3174},{"name":3188,"color":3189},"need reproduction","CD234A",3271,"[WebStorm] Type error '__VLS_ctx.$t' is of type 'unknown'.","2025-07-04T14:54:08Z","https://github.com/nuxt-modules/i18n/issues/3271",0.6713661,{"description":3196,"labels":3197,"number":3200,"owner":3176,"repository":3177,"state":3178,"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":3188,"color":3189},3767,"Its not working Home page on Subdomain","2025-07-31T10:28:33Z","https://github.com/nuxt-modules/i18n/issues/3767",0.6933387,{"description":3206,"labels":3207,"number":3209,"owner":3176,"repository":3177,"state":3178,"title":3210,"updated_at":3211,"url":3212,"score":3213},"### 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```",[3208],{"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.69868827,{"description":3215,"labels":3216,"number":3221,"owner":3176,"repository":3177,"state":3178,"title":3222,"updated_at":3223,"url":3224,"score":3225},"### Environment\n\n------------------------------\n- Operating System: Darwin\n- Node Version: v22.15.0\n- Nuxt Version: 3.17.3\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: yarn@1.22.22\n- Builder: -\n- User Config: devtools, nitro, router, app, runtimeConfig, components, modules, intercom, build, sentry, sourcemap, i18n, tailwindcss, site, vite, sitemap\n- Runtime Modules: @sentry/nuxt/module@9.14.0, @nuxtjs/i18n@9.5.4, @nuxtjs/tailwindcss@6.13.2, @nuxtjs/sitemap@7.2.10, nuxt-3-intercom@1.1.2\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nN/A\n\n### Describe the bug\n\nCurrently we have setup some redirects using nitro RouteRules.\nFor example:\n\n```\n'/test' = { redirect: {to: '/foo/test', code: 301 }, prerender: false }\n```\n\nAt the same time we have disabled the prerender option.\n\nWhen we run `nuxt build` we get 404 error for above redirects.\nIf we disable the redirect routeRules everything works as expected.\n\nNot sure what i18n module does to redirects urls but it crashes the build process.\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3217,3218],{"name":3188,"color":3189},{"name":3219,"color":3220},"scope: nitro","F366A6",3606,"issue with nitro routeRules and redirect","2025-08-15T07:49:28Z","https://github.com/nuxt-modules/i18n/issues/3606",0.71287215,{"description":3227,"labels":3228,"number":3230,"owner":3176,"repository":3177,"state":3178,"title":3231,"updated_at":3232,"url":3233,"score":3234},"### 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```",[3229],{"name":3173,"color":3174},3771,"useRoute needs suffix to work","2025-08-05T16:28:06Z","https://github.com/nuxt-modules/i18n/issues/3771",0.7154595,{"description":3236,"labels":3237,"number":3239,"owner":3176,"repository":3177,"state":3240,"title":3241,"updated_at":3242,"url":3243,"score":3244},"### Environment\n\nnode: v20.16.0\n\n\n\"nuxt\": \"^3.13.2\",\n\"@nuxtjs/i18n\": \"^9.1.1\",\n\n\n\n ERROR [unhandledRejection] _ctx.$t is not a function\n\n at _sfc_ssrRender (app/components/AppFooter.vue:56:1973)\n at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:715:9)\n at node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:662:25\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\n### Reproduction\n\n1. Yarn dev runs the project\n2. After modifying the code, save the code and perform a Nuxt hot update\n3. The terminal will output this error, and yarn dev needs to be re executed before development can continue\n\n### Describe the bug\n\nthis issue occurs during Nuxt hot updates\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\n\n```",[3238],{"name":3188,"color":3189},3641,"closed","[nuxt] [request error] [unhandled] [500] $setup.t is not a function","2025-06-03T21:53:56Z","https://github.com/nuxt-modules/i18n/issues/3641",0.60145235,{"description":3246,"labels":3247,"number":3252,"owner":3176,"repository":3177,"state":3240,"title":3253,"updated_at":3254,"url":3255,"score":3256},"### 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```",[3248,3249],{"name":3188,"color":3189},{"name":3250,"color":3251},"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.6814588,{"description":3258,"labels":3259,"number":3261,"owner":3176,"repository":3177,"state":3240,"title":3262,"updated_at":3263,"url":3264,"score":3265},"### Environment\r\n\r\nOperating System: Windows 11\r\n\r\nPackages:\r\n@esbuild/linux-x64@0.23.1 extraneous\r\n@nuxtjs/i18n@8.5.2\r\n@parcel/watcher-linux-x64-glibc@2.4.1 extraneous\r\n@parcel/watcher-linux-x64-musl@2.4.1 extraneous\r\n@rollup/rollup-linux-x64-gnu@4.21.2 extraneous\r\n@rollup/rollup-linux-x64-musl@4.21.2 extraneous\r\nnode-addon-api@7.1.1 extraneous\r\nnuxt-typed-router@3.6.5\r\nnuxt@3.13.\r\n\r\nPackage Manager: npm\r\n\r\n### Reproduction\r\n\r\n1. Install nuxt-typed-router\r\n2. Install @nuxtjs/i18n\r\n3. Set strategy for @nuxtjs/i18n in nuxt.config.ts to 'prefix'\r\n4. Get [unhandledRejection] Declaration or statement expected during build\r\n\r\nhttps://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-qm6vpw?file=package.json,nuxt.config.ts,i18n.config.ts\r\n\r\n### Describe the bug\r\n\r\nWhen both I18n and nuxt-typed-router are installed and strategy for I18n is set to \"prefix\", the nuxt-typed-router throws this exception: \r\n\r\n[unhandledRejection] Declaration or statement expected. (128:8) \r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3260],{"name":3173,"color":3174},3091,"[unhandledRejection] Declaration or statement expected - @nuxt/i18n + nuxt-typed-router","2025-05-16T12:00:31Z","https://github.com/nuxt-modules/i18n/issues/3091",0.6840549,{"description":3267,"labels":3268,"number":3275,"owner":3176,"repository":3177,"state":3240,"title":3276,"updated_at":3277,"url":3278,"score":3279},"### 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```",[3269,3272],{"name":3270,"color":3271},"upstream","fbca04",{"name":3273,"color":3274},"workaround","1FD0A3",3659,"Builds with rolldown-vite + nuxt i18n fail","2025-09-09T11:08:33Z","https://github.com/nuxt-modules/i18n/issues/3659",0.6874601,["Reactive",3281],{},["Set"],["ShallowReactive",3284],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fktdBYN5cUPjuneeiMqdcGY8OEpL3vHWYOyuHY7lJnsE":-1},"/nuxt-modules/i18n/3390"]