question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reactI18nextModule undefined property 'type'

See original GitHub issue

I 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)

screen shot 2017-10-05 at 10 47 23

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rntormcommented, Oct 5, 2017

I import it in index.js but its imported after App component, that might be the problem. I will test it soon.

0reactions
jamuhlcommented, Nov 1, 2019

@waqaramjad without reproducible sample I can’t see how to help with this…could be anything and everything

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found