Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap ParseError: Syntax Error on line 648 in mixins.less:648:25 647

After updating to Bootstrap 3.1.0 I get this error when compiling less files:

ParseError: Syntax Error on line 648 in mixins.less:648:25 647

padding-right: (@grid-gutter-width / 2); 648   &:extend(.clearfix all); 649 }

I use recess, version: 1.1.9. How can I solve it ?

like image 506
dragonfly Avatar asked Jan 31 '14 08:01

dragonfly


2 Answers

If you are using grunt-recess, you need to modify it to grunt-contrib-less, according to the release blogpost:

We've switched from Recess to grunt-contrib-less for our compiler, giving us access to Less 1.6.x (as opposed to 1.3.x with Recess).

like image 155
ticcky Avatar answered Sep 20 '22 16:09

ticcky


You have to update less to newer (for Bootstrap 3.1 and newer)

For those who use grunt, there's a magic

npm update --save

If problems with updating npm dependencies see How do I update each dependency in package.json to the latest version?.

like image 39
rikiless Avatar answered Sep 21 '22 16:09

rikiless