gluckgames / pixi-packer

Fast and flexible texture packer for PIXI.js
MIT License
40 stars 6 forks source link

Error when first running #24

Closed adoxographer closed 8 years ago

adoxographer commented 8 years ago

/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:155 throw e; ^ TypeError: Object # has no method 'parse' at new Sprite (/usr/local/share/npm/lib/node_modules/pixi-packer/lib/sprite.js:13:22) at /usr/local/share/npm/lib/node_modules/pixi-packer/lib/group.js:34:30 at Array.map (native) at /usr/local/share/npm/lib/node_modules/pixi-packer/lib/group.js:33:32 at _fulfilled (/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:796:13) at /usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:604:44 at runSingle (/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:137:13) at flush (/usr/local/share/npm/lib/node_modules/pixi-packer/node_modules/q/q.js:125:13)

marekventur commented 8 years ago

Sorry, but to be able to help you I would need some way to reproduce this. Can you upload the images and config you're using?

adoxographer commented 8 years ago

Hi!,

Thanks for the quick answer,

Here's the images.js that i'm using and running it on regular pngs.

images.js.zip

adoxographer commented 8 years ago

I was also able to replicate by cloning the pixi-packer repo and running:

npm install pixi-packer ./example.js test-img

marekventur commented 8 years ago

Could it be that you're using an outdated version of node? If I remember correctly path.parse was introduced in a later version of node. Try updating to 4.0 or newer.

adoxographer commented 8 years ago

Hi,

the issue was that I was expecting that the npm install took care of all dependencies, but still needed to install imagemagick and graphicsmagick.

all sorted