Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets

前端 未结 15 1421
眼角桃花
眼角桃花 2020-11-30 03:40

I am suddenly getting this error in development and in production on deployment.

custom.css.scss

@import \"bootstrap-sprockets\";
@import \"bootstrap         


        
15条回答
  •  情书的邮戳
    2020-11-30 04:19

    This error mostly comes in rails 3.2.x versions. If you are using rails version 3.2 you have to specify a special version in your gem file like below:

    gem 'rails', '3.2.0'
    gem 'bootstrap-sass', '3.2.0.2'
    

    It will resolve the problem for rails -v '3.2.0'

提交回复
热议问题