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

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

    I solved it in following steps:

    1. List item
    2. copying the "bootstrap.css" in my "app/assets/stylesheets/ (it was missing)
    3. gem install autoprefixer-rails (also modify Gemfile)
    4. gem install sprockets (also modify Gemfile)
    5. bundle install
    6. RESTART server (not just refreshing page)

提交回复
热议问题