You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"currency-search.placeholder": "Seleccione el Par de Divisa",
"currency-search.placeholder.short": "Par de Divisas"
}
With this stack trace:
i18next.js:229 Uncaught TypeError: Cannot set properties of undefined (setting 'undefined')
at setPath (i18next.js:229:10)
at ResourceStore.addResource (i18next.js:419:7)
at ResourceStore.addResources (i18next.js:429:122)
at _this2.<computed> [as addResources] (i18next.js:2161:50)
Specifically this code:
functionsetPath(object,path,newValue){var_getLastOfPath=getLastOfPath(object,path,Object),obj=_getLastOfPath.obj,k=_getLastOfPath.k;obj[k]=newValue;// <-- THIS LINE HERE}
You can see the state of the code when it blows up:
So basically because the first key is a subkey of the next key to be added getLastOfPath returns an empty object because the subkey has already set the value of its path to a string so canNotTraverseDeeper short-circuits the tree creation.
The text was updated successfully, but these errors were encountered:
馃悰 Bug Report
This resource file blows up i18next:
With this stack trace:
Specifically this code:
You can see the state of the code when it blows up:
So basically because the first key is a subkey of the next key to be added
getLastOfPath
returns an empty object because the subkey has already set the value of its path to astring
socanNotTraverseDeeper
short-circuits the tree creation.The text was updated successfully, but these errors were encountered: