TypeError: Cannot read property 'allLanguages' of undefined
See original GitHub issueHi,
I tried the example in the documentation against the latest version (0.20.0) and got lots of warnings and errors:
warning in ./pages/_app.js
"export 'appWithTranslation' was not found in '../i18n'
warning in ./pages/_app.js
"export 'i18n' was not found in '../i18n'
warning in ./components/NavBar.js
"export 'withNamespaces' was not found in '../i18n'
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'allLanguages' of undefined
at _default (../app/store/node_modules/next-i18next/dist/middlewares/next-i18next-middleware.js:25:29)
Here is the i18n.js
file:
import NextI18Next from 'next-i18next';
const options = {
localePath: 'public/locales',
};
export default new NextI18Next(options);
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'allLanguages' of undefined
Hi, I tried the example in the documentation against the latest version (0.20.0) and got lots of warnings and errors: warning in ....
Read more >Error in angular: Cannot read property 'Name' of undefined
Need to use languages in the subscription callback (when it has a value!) this.languageService.getAllLanguages().subscribe(languages ...
Read more >uncaught (in promise) typeerror: cannot read properties of undefined ...
I am getting this error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setState') and this is my code: class Table...
Read more >Msdn forums - Microsoft
Uncaught TypeError: Cannot read property '0' of undefined veapiVenueMaps.js:3. Answered | 3 Replies | 3781 Views | ...
Read more >A Guide to React Localization with i18next | Phrase
React-i18next is a powerful set of components, hooks, and plugins that sit on top of i18next. ... We get the active language via...
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
Sorry it seems to be my own mistake. It’s all good now.
Please to provide your own solution.