Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Error when setting options.spritePath #48

Open
hiulit opened this issue Apr 22, 2015 · 3 comments
Open

Error when setting options.spritePath #48

hiulit opened this issue Apr 22, 2015 · 3 comments

Comments

@hiulit
Copy link

hiulit commented Apr 22, 2015

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
Copy link
Contributor

phloe commented Apr 22, 2015

That scenario hadn't crossed my mind.

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

@hiulit
Copy link
Author

hiulit commented Apr 22, 2015

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
Copy link
Author

hiulit commented Apr 24, 2015

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

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

No branches or pull requests

2 participants