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

前端 未结 15 1419
眼角桃花
眼角桃花 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:02

    If you get this message when running integration tests, make sure that your asset gems are included in the test group.

    For example, change:

    group :assets do gem 'sass-rails', '~> 5.0.3' gem 'uglifier', '>= 1.3.0' end

    To:

    group :assets, :test do gem 'sass-rails', '~> 5.0.3' gem 'uglifier', '>= 1.3.0' end

提交回复
热议问题