SASS Invalid CSS error on Rails

后端 未结 1 1028
我寻月下人不归
我寻月下人不归 2021-02-14 04:15

I\'m trying to use http://startbootstrap.com/stylish-portfolio in my rails app however I\'m getting the following error in my stylish-portfolio.css.scss.erb file:



        
1条回答
  •  感动是毒
    2021-02-14 04:24

    My guess is that you are missing a semicolon in the stylish-portfolio.css.scss.erb file, maybe after an SCSS variable definition?

    Here's the original CSS file I assume you are basing this on, maybe you want to do a diff between that and yours to determine what has changed.


    Edit: Yup, apparently there is a missing semicolon after the first line. The @import statement

    @import 'bootstrap'
    

    should instead be

    @import 'bootstrap';
    

    since you are using the .scss extension. You can omit the semi-colon if you are using the .sass extension.

    0 讨论(0)
提交回复
热议问题