no exported member 'reactI18nextModule'
See original GitHub issueFailed to compile.
./src/i18n.ts
(5,10): error TS2305: Module '"/Users/Dawson/code/xyz/node_modules/@types/react-i18next/index"' has no exported member 'reactI18nextModule'.
We are using TypeScript so perhaps this is an issue with the @types/react-i18next module instead
// i18n.ts
import * as i18n from 'i18next';
import * as Backend from 'i18next-xhr-backend';
import * as LanguageDetector from 'i18next-browser-languagedetector';
// ERROR HERE
import { reactI18nextModule } from 'react-i18next';
i18n
.use(Backend)
.use(LanguageDetector)
.use(reactI18nextModule)
.init({
fallbackLng: 'en',
// have a common namespace used around the full app
ns: ['translations'],
defaultNS: 'translations',
debug: true,
interpolation: {
escapeValue: false, // not needed for react!!
},
react: {
wait: true,
},
});
export default i18n;
Here are the following package versions we’re using:
"i18next": "^10.0.6",
"i18next-browser-languagedetector": "^2.0.0",
"i18next-xhr-backend": "^1.4.3",
"react-i18next": "^6.0.6",
"@types/i18next": "^8.4.2",
"@types/i18next-browser-languagedetector": "^2.0.0",
"@types/i18next-xhr-backend": "^1.4.0",
"@types/react-i18next": "^4.6.0",
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
v10 I18nextProvider typings missing · Issue #718 - GitHub
Module '"node_modules/react-i18next/src"' has no exported member ... I saw that reactI18nextModule became initReactI18next.
Read more >Attempted import error: 'initReactI18next' is not exported from ...
This is my i18next.js file. I have downloaded all the dependencies and I was wondering why I am getting this error: Attempted import...
Read more >withNamespaces (v9) - react-i18next documentation
export default withNamespaces((props) => props.namespaces)(TranslatableView);. If not using the reactI18nextModule this hoc should be nested inside a ...
Read more >Module '"react"' has no exported member 'useDeferredValue'.
Module '"react"' has no exported member 'useDeferredValue'. For some reason, I can't seem to use React 18 features in my react application?
Read more >react-i18next | Yarn - Package Manager
... not supported in Trans and Interpolate component anyway); setting i18n instance and defaults can now be done by i18next.use(reactI18nextModule) making ...
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

ok…at least it works…hopefully someone will update those definitions soon…closing for now.
@jamuhl Worked on this for about 20 minutes and decided I don’t understand the complexities of this new named export enough to patch it in the typing source. Renamed my
.tsto a.jsand am ignoring the decrease in typing coverage. Working just fine for now 👌 Thanks!