diff --git a/packages/common/src/i18n.ts b/packages/common/src/i18n.ts index afd3f80670..16202b34a2 100644 --- a/packages/common/src/i18n.ts +++ b/packages/common/src/i18n.ts @@ -42,7 +42,7 @@ if (isClientSide()) { .use(initReactI18next) .init({ ...commonOptions, ...reactOptions }) } else { - i18n.use(Backend) + i18n.use(new Backend(undefined, { reloadInterval: false })) // THIS IS THE LINE THAT CAUSES THE ERROR WHERE VITE NEVER EXITS THE BUNDLING PROCESS! It is due to a setInterval call in this class. Set reloadInterval to false to avoid the interval setup. .use(MiddlewareLanguageDetector) .init({ ...commonOptions, ...nodeOptions }) }