bootstrap
bootstrap copied to clipboard
Error while compiling
On v.2.0.2, I get this error when I try to compile the code:
TypeError: Cannot call method 'charAt' of undefined
at getLocation (/opt/local/lib/node_modules/less/lib/less/parser.js:204:34)
at new LessError (/opt/local/lib/node_modules/less/lib/less/parser.js:213:19)
at Object.toCSS (/opt/local/lib/node_modules/less/lib/less/parser.js:379:31)
at /opt/local/lib/node_modules/less/bin/lessc:103:28
at /opt/local/lib/node_modules/less/lib/less/parser.js:428:40
at /opt/local/lib/node_modules/less/lib/less/parser.js:94:48
at /opt/local/lib/node_modules/less/lib/less/index.js:113:15
at Object.parse (/opt/local/lib/node_modules/less/lib/less/parser.js:430:17)
at /opt/local/lib/node_modules/less/lib/less/index.js:112:14
at [object Object].<anonymous> (fs.js:115:5)
Hi, try to update LESS compiler to version 1.3.0. I had the same problem until i've updated.
Magnificent!
Thanks, @netatoo! :D
I'm still getting a similar error (different lines) with today's versions of both lessc and bootstrap:
TypeError: Cannot call method 'charAt' of undefined
at getLocation (/Users/andreas/node_modules/less/lib/less/parser.js:216:34)
at new LessError (/Users/andreas/node_modules/less/lib/less/parser.js:225:19)
at Object.toCSS (/Users/andreas/node_modules/less/lib/less/parser.js:389:31)
at /Users/andreas/node_modules/less/bin/lessc:107:28
at /Users/andreas/node_modules/less/lib/less/parser.js:438:40
at /Users/andreas/node_modules/less/lib/less/parser.js:98:48
at /Users/andreas/node_modules/less/lib/less/index.js:116:17
at Object.parse (/Users/andreas/node_modules/less/lib/less/parser.js:440:17)
at /Users/andreas/node_modules/less/lib/less/index.js:115:16
at [object Object].<anonymous> (fs.js:107:5)
/cc @markdotto
I think it's related to this issue https://github.com/cloudhead/less.js/issues/723 ...