msvgc icon indicating copy to clipboard operation
msvgc copied to clipboard

Cannot read property 'toUpperCase' of undefined

Open toearth opened this issue 7 years ago • 2 comments

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)

toearth avatar Jul 06 '17 02:07 toearth

@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 avatar Aug 28 '17 11:08 henrikra

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

henrikra avatar Aug 28 '17 19:08 henrikra