webstorm sass編譯報錯該如何解決?
1 回答

莫回無
TA貢獻1865條經驗 獲得超7個贊
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"
- 1 回答
- 0 關注
- 1199 瀏覽
添加回答
舉報
0/150
提交
取消