maxmx / bootstrap-stylus

Port of Bootstrap to Stylus
MIT License
585 stars 113 forks source link

Parse error: mixins/image.styl:27 #83

Closed FindBoat closed 9 years ago

FindBoat commented 9 years ago

ParseError: /home/vagrant/angular-express-coffee/node_modules/bootstrap-styl/bootstrap/mixins/image.styl:27 23| //only screen and (-webkit-min-device-pixel-ratio 2), 24| //only screen and (min--moz-device-pixel-ratio 2), 25| //only screen and (-o-min-device-pixel-ratio 2/1), 26| only screen and (min-device-pixel-ratio 2),

27| only screen and (min-resolution 192dpi), 28| only screen and (min-resolution 2dppx) 29| background-image url("{$file-2x}") 30| background-size $width-1x $height-1x

expected "(", got "newline"

at Parser.error (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:230:11)
at Parser.expect (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:258:12)
at Parser.queryExpr (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:976:10)
at Parser.query (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:964:23)
at Parser.queries (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:931:25)
at Parser.media (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:917:38)
at Parser.stmt (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:695:26)
at Parser.statement (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:603:21)
at Parser.block (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:763:21)
at Parser.functionDefinition (/home/vagrant/angular-express-coffee/node_modules/stylus/lib/parser.js:1546:21)

I'm using stylus middleware in my express.

kane-c commented 9 years ago

Which version of Stylus are you using? I think this was fixed with 0.42 or thereabouts.

FindBoat commented 9 years ago

I'm using 0.43.

kane-c commented 9 years ago

Sorry, I was wrong; might have been 0.45 or 0.47 that fixes this. A similar problem in #68 was fixed by updating Stylus.

FindBoat commented 9 years ago

Got it. After upgrading to the latest version, it works. Thanks.