Skip to content
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

Cannot read property 'toLowerCase' of undefined #14

Open
smic opened this issue Mar 25, 2019 · 0 comments
Open

Cannot read property 'toLowerCase' of undefined #14

smic opened this issue Mar 25, 2019 · 0 comments

Comments

@smic
Copy link

smic commented Mar 25, 2019

I installed localize-mainmenu via npm, but following error when executing:

/usr/local/lib/node_modules/localize-mainmenu/localizor.js:49
var targetLang = child.attr["target-language"].toLowerCase();
^

TypeError: Cannot read property 'toLowerCase' of undefined
at /usr/local/lib/node_modules/localize-mainmenu/localizor.js:49:51
at XmlDocument.XmlElement.eachChild (/usr/local/lib/node_modules/localize-mainmenu/node_modules/xmldoc/lib/xmldoc.js:63:18)
at /usr/local/lib/node_modules/localize-mainmenu/localizor.js:41:12
at tryToString (fs.js:414:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant