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 'transform' of undefined #8

Open
gtoal opened this issue Nov 3, 2020 · 0 comments
Open

TypeError: Cannot read property 'transform' of undefined #8

gtoal opened this issue Nov 3, 2020 · 0 comments

Comments

@gtoal
Copy link

gtoal commented Nov 3, 2020

I installed with "sudo npm install -g vectorinox" and it seemed to install OK, but on using it I get:

$ vectorinox --stdout youtube.svg
/usr/local/lib/node_modules/vectorinox/dist/plugins/applyTransforms.js:292
    if (el.attrs['transform']) {
                ^

TypeError: Cannot read property 'transform' of undefined
    at applyTransforms (/usr/local/lib/node_modules/vectorinox/dist/plugins/applyTransforms.js:292:17)
    at Array.map (<anonymous>)
    at applyTransforms (/usr/local/lib/node_modules/vectorinox/dist/plugins/applyTransforms.js:305:35)
    at Array.map (<anonymous>)
    at applyTransforms (/usr/local/lib/node_modules/vectorinox/dist/plugins/applyTransforms.js:305:35)
    at /usr/local/lib/node_modules/vectorinox/dist/index.js:25:72
    at Array.reduce (<anonymous>)
    at Object.clean (/usr/local/lib/node_modules/vectorinox/dist/index.js:25:22)
    at Object.<anonymous> (/usr/local/lib/node_modules/vectorinox/dist/bin.js:95:19)
    at Module._compile (module.js:652:30)

I get the same error whether there is a transform="..." anywhere in the svg file or not.

Sorry I can't help debug, not familiar with the language. I just need a command line utility to flatten svg files for use with a project I'm writing in C.

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