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

Open
toearth opened this issue Jul 6, 2017 · 2 comments · May be fixed by #10
Open

Cannot read property 'toUpperCase' of undefined #7

toearth opened this issue Jul 6, 2017 · 2 comments · May be fixed by #10
Assignees
Labels

Comments

@toearth
Copy link

toearth commented Jul 6, 2017

generateComponents.js:181
filename = filename[0].toUpperCase() + filename.slice(1)
^

TypeError: Cannot read property 'toUpperCase' of undefined
at optimizer.optimize.res (/Users/wind/.nvm/versions/node/v8.1.2/lib/node_modules/msvgc/lib/generateComponents.js:181:31)

@henrikra
Copy link

@necinc @TheTekton Please check this bug! I am experiencing the same bug with latest version from master (4d84351). I am using OSX (macOS Sierra).
I am running msvgc with basic parameters: msvgc -f src/components/myicon.svg -o src/components

@henrikra henrikra linked a pull request Aug 28, 2017 that will close this issue
@henrikra
Copy link

@windhost I made Pr for this #10 Can you test it out? 😉

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

Successfully merging a pull request may close this issue.

3 participants