react_devtools_backend.js:4045 TypeError: Cannot read properties of undefined (reading 'forEach')
at Array.forEach (<anonymous>)
at Translator.resolve (i18next.js:865)
at Translator.translate (i18next.js:744)
at I18n.t (i18next.js:2544)
I'm trying to upgrade from i18next 20 to i18next 21. In our app, we do not load any namespaces by default and have no default translations file (all is being imported through the use of namespaces through component hooks).
Because my array of ns is empty it breaks initialization. And it requires me to specify a namespace that is loaded by default . Which I don't want to.
I believe this is because of how the new defaultNs is being loaded. It seems to not check if the ns property actually contains values or is an empty array.
runtime version: node 14
i18next version: i18next 21.1.6 (upgrading from 20.3.1)
any other relevant information: Running together with i18next-backend and i18next-react
The text was updated successfully, but these errors were encountered: