File to import not found or unreadable: compass/css3/animation

Matrix picture Matrix · Sep 30, 2014 · Viewed 8.7k times · Source

I need to use animation wih compass, so I try to use like said in doc: http://compass-style.org/reference/compass/css3/animation/

I put at top of my file:

@import "compass/css3/animation";

but I have error:

 File to import not found or unreadable: compass/css3/animation.

I have the latest version of compass and rails-compass gem, so I don't know where is my mistake?

thx.

Answer

Tom Kadwill picture Tom Kadwill · Sep 30, 2014

Not sure if you have tried this already but hopefully this helps - In the README it says that you should import compass like so:

@import "compass";

@import "your_project/mixins";
@import "your_project/base";

Or, you should use the application.css:

/*
*= require styleguide_full_of_compass_stuff
*/

Finally the README also advises not to include compass in individual files.