-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] TypeError: Cannot read property 'read' of undefined #2
Comments
Could you provide me with info what |
not sure why backend is undefined in your case...rather strange. |
I added a console.log statement before line 30. Here is the new output:
It throws in the exact same spot. |
arghh...i see...give me a few seconds |
could you try: [email protected] |
yes hang on |
Now I get only the warning. I tried to lowed the upper bound too but I was not sure. Thank you for the quick reply! |
ok seems to work now -> if you want to avoid this warning -> setting |
Thank you very much @jamuhl. You can close this issue. |
I report a possible bug.
Prologue
I build a front-end app with react. I use i18next combined with react-i18next to handle my locales. The translations are loaded through a backend API with i18next-xhr-backend.
Today I wanted to add cache behavior to my translations. To achieve this behavior I installed the i18next-localstorage-backend along this this package [i18next-chained-backend].
My configuration file
The problem
When I start my app application I get the following error in the console:
(index.js:60)
points to the index.js file of i18next-chained-backend package.If you watch closely the stack trace, I was able to load the
en/translation.json
file usingXHR
before the error occurs.Expected behavior
The web app loads the translation without any errors.
My workspace
v8.10.0
5.8.0
1.5.1
11.1.1
2.2.0
0.1.1
1.1.4
1.5.1
Additional Info
Both the
i18next-localstorage-backend
and thei18next-xhr-backend
works indepedendly.I tried to debug the code to find a workaround. I do not want to post any recommendations as you have a better understanding of the codebase and the application logic. If you want more details I will happily help you. 😃 Thanks in advance for your help. This is a really useful plugin.
The text was updated successfully, but these errors were encountered: