drdk / grunt-dr-svg-sprites

Grunt plugin to create SVG sprites with PNG fallbacks at needed sizes
113 stars 19 forks source link

Error when setting options.spritePath #48

Open hiulit opened 9 years ago

hiulit commented 9 years ago

I'm working on my C: drive and I'm trying to create the sprites on the D: drive but I'm getting this error:

Fatal error: TypeError: 'undefined' is not a function (evaluating 'el.getBBox()')

  phantomjs://webpage.evaluate():5
  phantomjs://webpage.evaluate():35
  phantomjs://webpage.evaluate():35
Unable to calculate dimensions.
TypeError: 'null' is not an object (evaluating 'dimensions.width')

I've check for permission and it looks fine to me.

phloe commented 9 years ago

That scenario hadn't crossed my mind.

Do any of the svg's get written to their intended destination?

hiulit commented 9 years ago

Yeah, the svg it's getting created but the png isn't. I guess it must have something to do with the creation of the png. And looking at the error thrown something to do with phantom.js

hiulit commented 9 years ago

I managed to move them using the grunt copy function, but it would be better if the plugin could do it by itself.