更新來引導3.1.0編譯更少的文件時,我得到這個錯誤後:引導ParseError:上線648語法錯誤mixins.less:648:25 647
ParseError: Syntax Error on line 648 in mixins.less:648:25 647
padding-right: (@grid-gutter-width/2); 648 &:extend(.clearfix all); 649 }
我用的凹槽,版本:1.1.9。我該如何解決它?
更新來引導3.1.0編譯更少的文件時,我得到這個錯誤後:引導ParseError:上線648語法錯誤mixins.less:648:25 647
ParseError: Syntax Error on line 648 in mixins.less:648:25 647
padding-right: (@grid-gutter-width/2); 648 &:extend(.clearfix all); 649 }
我用的凹槽,版本:1.1.9。我該如何解決它?
你如果有更新NPM的依賴問題,請參閱How do I update each dependency in package.json to the latest version?少更新到新的(自舉3.1及更高版本)
對於那些誰使用的呼嚕聲,有一個神奇的
npm update --save
。
如果您正在使用咕嚕內凹,你需要修改它的呼嚕聲,contrib請少,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).
這是我的情況,謝謝! – Asgaroth
有凹槽的沒有更新的版本,所以這是爲什麼標記爲答案嗎? ticcky的回答確實適合更多... – Sebastian