1,加一句編碼,@charset "UTF-8"

2,Encoding::CompatibilityError: incompatible character encodings: GBK and UTF-8
3,打開--trace

4,出現如下提示信息:filesystem.rb 87行的index
5,找到文件lib\ruby\gems\2.3.0\gems\sass-3.4.22\lib\sass\importers\filesystem.rb的87行
6,測試:

7,結果:

8,如果scss文件中帶中文會報錯,解決方法如上圖中第一行添加 @charset "UTF-8"