reactI18nextModule undefined property 'type'
See original GitHub issueI have a problem using the new reactI18nextModule. Without it, works normally.
import i18n from 'i18next';
import LocizeBackend from 'i18next-locize-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { reactI18nextModule } from 'react-i18next';
i18n
.use(LocizeBackend)
.use(LanguageDetector)
.use(reactI18nextModule)

Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Cannot read property 'type' of undefined` when testing i18next ...
Try this: const reactI18nextModule = require("react-i18next");. instead of. import { initReactI18next } from "react-i18next";.
Read more >TypeScript - react-i18next documentation
In order to fully type the t function, we recursively map all nested keys from your primary locale files or objects. Depending on...
Read more >next-i18next - npm
Reason: `function` cannot be serialized as JSON. Please only return JSON serializable data types. To fix this, you'll need to set config.
Read more >react-i18next | Yarn - Package Manager
12.0.0. Update t function types to rely on types coming from i18next 1501. 11.18.6. types: nsMode 1554. 11.18.5. support unescaping forward slash 1548 ......
Read more >webviewer-ui.min.js.txt - Google Groups
return e}},function(e,t){var n=e.exports="undefined"!=typeof ... if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I import it in index.js but its imported after App component, that might be the problem. I will test it soon.
@waqaramjad without reproducible sample I can’t see how to help with this…could be anything and everything