TypeError: props.i18n.changeLanguage is not a function
See original GitHub issueI’ve updated to i18next": "^13.0.0 and started to get this error… not sure if it’s a languageDetector or i18next-react issue?
TypeError: props.i18n.changeLanguage is not a function
initSSR
node_modules/react-i18next/dist/es/utils.js:46
43 | }
44 |
45 | if (!initializedLanguageOnce && props.initialLanguage) {
> 46 | props.i18n.changeLanguage(props.initialLanguage);
47 | initializedLanguageOnce = true;
48 | }
49 | } // --------------
using typescript: 3.2.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
i18n.changeLanguage is not a function - Stack Overflow
I get this error. TypeError: i18n.changeLanguage is not a function.How to fix? javascript · reactjs · typescript · react-i18next.
Read more >[Solved]-i18n.changeLanguage is not a function-Reactjs
a) move changeLanguage like in the code above - but also import i18n from '. ... React JS - Uncaught TypeError: this.props.data.map is...
Read more >TypeError: props.i18n.changeLanguage is not a function
I've updated to i18next": "^13.0.0 and started to get this error... not sure if it's a languageDetector or i18next-react issue? TypeError: ...
Read more >How to use the i18next.changeLanguage function in ... - Snyk
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >i18next.i18n.changeLanguage JavaScript and Node.js code ...
shared/translations/i18n.js/changeLanguage. // Change translation language export function changeLanguage(lng) { return i18next.changeLanguage(lng); }.
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
https://github.com/i18next/react-i18next/pull/631 related?
@jamuhl awesome, thx! btw, I confirm that this issue is not present, everything works fine after adjusting according to migration guide, so I think this can be closed @jadbox ?