Closed jgegenfurtner closed 9 years ago
I've seen this error right after bundle install
but restart the server solved this problem.
@jgegenfurtner did this also resolved this issue for you?
No, as I said, bundle install
does/did not resolve this issue.
I could resolve it instead using explicit stylesheet import in my "application.css.sass" as described above in my first post:
@import "bootstrap3-switch.css.scss"
Hello,
I installed this gem following the README. I included bootstrap-switch in my SASS stylesheets using the "import" statements as described there (btw, the statements include semicolons; didn't SASS get rid of semicolons?!).
@import "bootstrap3-switch"
This leads to the following error message (development mode):
However, when I use the CSS import
*= require bootstrap3-switch
there is no error message and the CSS file gets loaded (from the produced HTML):<link data-turbolinks-track="true" href="/assets/bootstrap3-switch.self.css?body=1" media="all" rel="stylesheet" />
So I guess there is something wrong with the SASS import.
I identified the problem and found a solution. Problem: the SASS
import filename
statement tries to import "_filename.scss". Solution: useimport "bootstrap3-switch.css.scss"
in your application.css.sassYou should update the README or change the files to "_bootstrap3-switch.scss".