maximalism2 / msvgc

Make React components from your plain SVG files
67 stars 14 forks source link

Cannot read property 'toUpperCase' of undefined #7

Open toearth opened 7 years ago

toearth commented 7 years ago

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 commented 7 years ago

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

henrikra commented 7 years ago

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