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

TypeError: Cannot read property 'svg' of undefined #4

Open
cocap10 opened this issue May 17, 2017 · 0 comments
Open

TypeError: Cannot read property 'svg' of undefined #4

cocap10 opened this issue May 17, 2017 · 0 comments

Comments

@cocap10
Copy link

cocap10 commented May 17, 2017

Hi,

I couldn't get this script working.

What I did:

cd to_the_directory_which_contains_svgs
mkdir resized
/js/svg-resizer/svg-resizer.js -f -x 70 -y 70 -o resized/ *.svg 

What I got:

events.js:160
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'svg' of undefined
    at /home/martin/js/svg-resizer/svg-resizer.js:70:58
    at Parser.<anonymous> (/home/martin/js/svg-resizer/node_modules/xml2js/lib/xml2js.js:493:18)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at Object.onerror (/home/martin/js/svg-resizer/node_modules/xml2js/lib/xml2js.js:311:26)
    at emit (/home/martin/js/svg-resizer/node_modules/sax/lib/sax.js:640:35)
    at error (/home/martin/js/svg-resizer/node_modules/sax/lib/sax.js:669:5)
    at strictFail (/home/martin/js/svg-resizer/node_modules/sax/lib/sax.js:693:7)
    at parseEntity (/home/martin/js/svg-resizer/node_modules/sax/lib/sax.js:953:7)
    at Object.write (/home/martin/js/svg-resizer/node_modules/sax/lib/sax.js:1501:31)

Any idea about what is wrong ?

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