From 8920be7fd3689f89b92f962ea916a780aec71a55 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Wed, 10 Jun 2026 18:13:51 +0200 Subject: [PATCH] fix(i18n): disable createMessagesDeclaration to fix typecheck The auto-generated en.d.json.ts was stale (missing beszel keys), causing 67 TS2345 errors. Additionally, with ~2,367 leaf keys at depth 10, the generated declaration triggers TS type complexity limits (known next-intl issue #2296). Disable the feature in next.config.ts, delete the stale file, and remove its .gitignore entry. Key/namespace validation is preserved via raw JSON import types. --- .gitignore | 3 +-- apps/nextjs/next.config.ts | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 0e991cc6c..768e58818 100644 --- a/.gitignore +++ b/.gitignore @@ -66,8 +66,7 @@ e2e/shared/tmp #personal backgrounds apps/nextjs/public/images/background.png -# next-intl -en.d.json.ts + # personal agent config AGENTS.md diff --git a/apps/nextjs/next.config.ts b/apps/nextjs/next.config.ts index bcce78519..1db8ff957 100644 --- a/apps/nextjs/next.config.ts +++ b/apps/nextjs/next.config.ts @@ -10,9 +10,6 @@ import createNextIntlPlugin from "next-intl/plugin"; // Package path does not work... so we need to use relative path const withNextIntl = createNextIntlPlugin({ - experimental: { - createMessagesDeclaration: "../../packages/translation/src/lang/en.json", - }, requestConfig: "../../packages/translation/src/request.ts", });