E
E
efimenko_b2015-06-04 21:58:57
css
efimenko_b, 2015-06-04 21:58:57

Why is there an error when trying to generate a sprite through Compass in SASS?

When I try to generate sprites in compass for sass, I get an error:
TypeError: no implicit conversion of Array into String
What could be the problem?
I connect:

@import "compass/utilities/sprites";
@import "../sprite/*.png";

All paths are correct. There are 3 files in the sprite folder: bannerlink.png, breadarrow.png, toup.png
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Zuev, 2015-06-04
@efimenko_b

The path to the images must be relative to the directory specified in the images_dir of the configuration file.
If you have images_dir = "img" and the sprite folder is in the img folder, then you need to write
@import "sprite/*.png";

S
sergski, 2015-06-04
@sergski

Create a config.rb file and write the paths to the folders in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question