简体   繁体   English

要导入的文件未找到或不可读:指南针/ css3 /动画

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

I need to use animation wih compass, so I try to use like said in doc: http://compass-style.org/reference/compass/css3/animation/ 我需要使用带指南针的动画,所以我尝试使用如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? 我有最新版本的指南针和rails-compass宝石,所以我不知道我的错误在哪里?

thx. 谢谢。

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: 或者,您应该使用application.css:

/*
*= require styleguide_full_of_compass_stuff
*/

Finally the README also advises not to include compass in individual files. 最后,README还建议不要在单个文件中包含指南针。

I'm waiting the good solution, but pending, I use this fix: http://joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/ 我正在等待好的解决方案,但待定,我使用此修复程序: http//joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/

hope helpful others. 希望对别人有用。

Try do this 试试这个

sudo gem install compass

If it not help try to use this compass plugin: https://github.com/ericam/compass-animation 如果没有帮助尝试使用这个指南针插件: https//github.com/ericam/compass-animation

to add it you should to do next steps: 要添加它,您应该执行下一步:

1) run in console 1)在控制台中运行

gem install animation --pre

2) add 2)添加

require 'animation' 

in your config.rb 在你的config.rb中

3) add 3)添加

@import "animation"; 

in you .scss/.sass file. 在.scss / .sass文件中。

-- -

Hope it's help you! 希望它对你有所帮助!

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到导入文件或文件不可读:生产模式中的指南针 - File to import not found or unreadable: compass in production mode Rails 3应用程序中的Sass导入错误 - “导入未找到或不可读的文件:指南针” - Sass import error in Rails 3 app - “File to import not found or unreadable: compass” Sass::SyntaxError:未找到要导入的文件或无法读取:生产中的指南针 - Sass::SyntaxError: File to import not found or unreadable: compass in production 错误:要导入的文件未找到或不可读:指南针。 在轨道3.1 - Error: File to import not found or unreadable: compass. in rails 3.1 “未找到或不可读的要导入的文件:物化”:在 Rails 中物化 CSS - “File to import not found or unreadable: materialize”: Materialize CSS in Rails bootstrap:要导入的文件未找到或不可读 - bootstrap :File to import not found or unreadable 要导入的文件未找到或不可读:bootstrap - File to import not found or unreadable: bootstrap 要导入的Sass文件未找到或不可读 - Sass File to import not found or unreadable Sass :: SyntaxError:在Rails 3中找不到要导入的文件或不可读的文件 - Sass::SyntaxError: File to import not found or unreadable In Rails 3 找不到或不可读的导入文件:整洁 - File to import not found or unreadable: neat/neat
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM