0
我正在嘗試使用nodejs應用程序中的node-sass模塊編譯.sass文件。但是,編譯失敗並顯示無效的CSS錯誤。Node-SASS編譯器失敗 - 無效的CSS
這裏是我的SCSS:
body {
background: rgb(255, 0, 0);
}
以下是完整的錯誤消息:
Original Error: { [Error: Invalid CSS after "body {": expected "}", was "{"]
status: 1,
file: 'C:/localhost/NodeJS-Server/private/sass/style.sass',
line: 2,
column: 7,
message: 'Invalid CSS after "body {": expected "}", was "{"',
formatted: 'Error: Invalid CSS after "body {": expected "}", was "{"\n on line 2 of private/sass/style.sass\n>> body { {\n ------^\n' }
我不知道在哪裏第二個 '{' 從何而來。