sindresorhus / gulp-ruby-sass

Compile Sass to CSS with Ruby Sass
MIT License
464 stars 77 forks source link

Error #104

Closed chrisvidal closed 10 years ago

chrisvidal commented 10 years ago

Hi,

im getting this following error which does not give wich sass / css file is wrong, neither which css block.

/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:399 throw new Error('Please check the validity of the CSS block starting f ^ Error: Please check the validity of the CSS block starting from the line #1994 at throwError (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:399:15) at checkStylesheet (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:1921:22) at Object.CSSPRules.stylesheet (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:365:40) at _getAST (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:409:38) at exports.srcToCSSP (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:2287:16) at Object.exports.srcToCSSP (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/gonzales.cssp.node.js:2292:16) at exports.parse (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/cssoapi.js:7:21) at Object.exports.justDoIt (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/node_modules/csso/lib/cssoapi.js:21:41) at Transform.stream._transform (/Users/Tsun/Sites/wootag/alpha/node_modules/gulp-csso/index.js:39:34) at Transform._read (_stream_transform.js:179:10)

emolr commented 10 years ago

Hi @chrisvidal why was this closed? and or did you find the solution for it? i'm having the exact same problem :) Best Emil

UltCombo commented 10 years ago

@kittylion it is probably a syntax error in your code. Run sass directly in the CLI and you should get a better error message.

chrisvidal commented 10 years ago

after investigation, the issue was due to the gulp plugin csso() and not gulp-sass() hope that helps - if this is your case, you can check the gulp csso() issue tracker on github, there is an hint to find more about the syntax issue