TFunction TS2345: Argument of type 'xyz' is not assignable to parameter of type
Property '$TFunctionBrand' is missing in type ...
ERROR in src/pages/todos/todos.tsx:27:16
TS2345: Argument of type 'import("C:/dev/react-scss-jest-typescript/node_modules/react-i18next/ts4.1/index").TFunction<"translation", undefined>' is not assignable to parameter of type 'import("C:/dev/react-scss-jest-typescript/node_modules/i18next/typescript/t.v4").TFunction<"translation", undefined>'.
Property '$TFunctionBrand' is missing in type 'import("C:/dev/react-scss-jest-typescript/node_modules/react-i18next/ts4.1/index").TFunction<"translation", undefined>' but required in type 'import("C:/dev/react-scss-jest-typescript/node_modules/i18next/typescript/t.v4").TFunction<"translation", undefined>'.
25 |
26 | useEffect(() => {
> 27 | fetchTodos(t).then((res) => {
| ^
package.json:
"react-i18next": "^11.8.12", "i18next": "^23.10.1", "i18next-browser-languagedetector": "^6.1.0", "i18next-intervalplural-postprocessor": "^3.0.0",
Solution
"react-i18next": "^14.1.1", "i18next": "^23.10.1", "i18next-browser-languagedetector": "^6.1.0", "i18next-intervalplural-postprocessor": "^3.0.0",
Recent Comments