Problem updating to bootstrap-sass 3.2.0

Is there anything else that needs to be referenced / tuned when updating self-tuning memory to ~> 3.2.0 ?

Using RubyMine 6.3 as an editor and the following in a Gemfile:

 ruby '2.1.2' gem 'rails', '4.1.1' gem 'sass-rails', '~> 4.0.3' gem 'bootstrap-sass', '3.1.1.1' 

app / assets / stylesheets / application.css.scss will be happy

 @import 'bootstrap'; 

However, as soon as the bootstrap-sass self-configuration is updated to the current version, changing the Gemfile link to (and then updating the package):

 gem 'bootstrap-sass', '~> 3.2.0' 

Now RubyMine has problems with @import 'bootstrap'; expression @import 'bootstrap'; saying: "Cannot resolve import to sass / scss file."

The twbs / bootstrap-sass installation docs don't show that anything else is needed ...

+3
source share
1 answer

Remove all * = require_self and * = require_tree. statements from the sass file. Instead, use @import to import Sass files.

Do not use * = require in Sass or your other stylesheets will not be able to access mixes or Bootstrap variables.

+1
source

Source: https://habr.com/ru/post/1204612/


All Articles