LESS files won't compile
joeczucha opened this issue · 1 comments
joeczucha commented
Apologies in advance if I'm missing something, but when I run npm run watch
and edit variables.less, I receive the following error:
[19:04:21] Plumber found unhandled error:
Error in plugin 'gulp-less'
Message:
'../../bower_components/bootswatch/yeti/bootswatch.less' wasn't found in file /Users/joe/Sites/labs/vanilla-bootstrap/less/themes/yeti.less line no. 7
Details:
type: File
filename: /Users/joe/Sites/labs/vanilla-bootstrap/less/themes/yeti.less
index: 122
line: 7
callLine: NaN
callExtract: undefined
column: 0
extract: @import "../../bower_components/bootswatch/yeti/variables";,@import "../../bower_components/bootswatch/yeti/bootswatch";,
lineNumber: 7
fileName: /Users/joe/Sites/labs/vanilla-bootstrap/less/themes/yeti.less
I guess this is because the bower_components folder isn't included in the repository. I tried using git clone --recursive
to see if the folder was included but apparently not...
Thanks
Joe
joeczucha commented
Ah, it was because my 'bower install' was failing due to this issue: https://github.com/sebzahn/vanilla-bootstrap/commit/1de8db4eccba22b62f1d8c406a544b7ad984a554
Changed the version in my bower.json and all working now :)