From 838ffc2539ac1fd3e9c3aab52eefcf6657a1b766 Mon Sep 17 00:00:00 2001 From: Fernando Lucio Canizo Date: Wed, 22 Nov 2023 12:31:52 -0300 Subject: [PATCH] Fix `reportNamespaces` TS error According to https://github.com/i18next/react-i18next/issues/1693 you can fix the Typescript error on `reportNamespaces` by changing `module` and `moduleResolution` on TS config. This raises new TS errors, but let's see where the path leaves us. --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 28cce91..d3f48bc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,8 @@ "isolatedModules": true, "esModuleInterop": true, "jsx": "react-jsx", - "moduleResolution": "Bundler", + "module": "NodeNext", + "moduleResolution": "NodeNext", "resolveJsonModule": true, "target": "ES2022", "strict": true,