aslansky / css-sprite

css sprite generator
MIT License
733 stars 55 forks source link

Works from the cli but not in the code [undefined:0 TypeError: undefined is not a function] #40

Closed maarekj closed 9 years ago

maarekj commented 9 years ago

Hello, At me, this library works in the cli but not in the code. When I execute

sprite.create({style: "sprite", processor: "less", out: process.getCwd(), src:["./src/image.png"], ...});

I obtain this error:

undefined:0

TypeError: undefined is not a function

An idea ?

aslansky commented 9 years ago

Can you post some more code? How do you require css-sprite in your code? The create function should be there. You're use it exactly the same like in the tests.

maarekj commented 9 years ago

Sorry, I do not remember, I switched to something else.

aslansky commented 9 years ago

ok