bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Error while compiling

Open felds opened this issue 14 years ago • 5 comments

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)

felds avatar Mar 13 '12 16:03 felds

Hi, try to update LESS compiler to version 1.3.0. I had the same problem until i've updated.

netatoo avatar Mar 13 '12 16:03 netatoo

Magnificent!

Thanks, @netatoo! :D

felds avatar Mar 13 '12 16:03 felds

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)

meandmymonkey avatar Apr 04 '12 16:04 meandmymonkey

/cc @markdotto

meandmymonkey avatar Apr 04 '12 17:04 meandmymonkey

I think it's related to this issue https://github.com/cloudhead/less.js/issues/723 ...

antoineguiral avatar Apr 19 '12 21:04 antoineguiral