我突然在開發和生產部署中遇到此錯誤。Sass :: SyntaxError:要導入的文件未找到或無法讀取:bootstrap-sprockets
custom.css.scss
@import "bootstrap-sprockets";
@import "bootstrap";
錯誤(生產)
rake aborted!
Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets.
Load paths:
/srv/www/myapp/releases/20141001060418/app/assets/images
/srv/www/myapp/releases/20141001060418/app/assets/javascripts
/srv/www/myapp/releases/20141001060418/app/assets/stylesheets
/srv/www/myapp/releases/20141001060418/vendor/assets/javascripts
/srv/www/myapp/releases/20141001060418/vendor/assets/stylesheets
那麼,如果我是你,我會檢查該bootstrap-sprockets.css.scss文件,並確保它在那裏,並準備推出的薩斯預編譯;-) – jfornoff 2014-10-01 06:46:59
可能重複的問題 - http://stackoverflow.com/questions/23108679/sasssyntaxerror-file-to-import-未找到或不可讀的指南針生產 – 2014-10-01 07:15:24
不要忘記重新啓動服務器 – saadlulu 2015-09-04 19:56:57