Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during make #12

Closed
megamattron opened this issue Mar 30, 2012 · 3 comments
Closed

Error during make #12

megamattron opened this issue Mar 30, 2012 · 3 comments

Comments

@megamattron
Copy link

I'm seeing:

lessc ./swatchmaker.less > swatch/bootstrap.css
TypeError: Cannot call method 'charAt' of undefined
    at getLocation (/usr/local/lib/node_modules/less/lib/less/parser.js:212:34)
    at new LessError (/usr/local/lib/node_modules/less/lib/less/parser.js:221:19)
    at Object.toCSS (/usr/local/lib/node_modules/less/lib/less/parser.js:385:31)
    at /usr/local/lib/node_modules/less/bin/lessc:107:28
    at /usr/local/lib/node_modules/less/lib/less/parser.js:434:40
    at /usr/local/lib/node_modules/less/lib/less/parser.js:94:48
    at /usr/local/lib/node_modules/less/lib/less/index.js:116:17
    at Object.parse (/usr/local/lib/node_modules/less/lib/less/parser.js:436:17)
    at /usr/local/lib/node_modules/less/lib/less/index.js:115:16
    at [object Object].<anonymous> (fs.js:115:5)

When trying to build with LESS version: lessc 1.3.0 (LESS Compiler) [JavaScript]

This seems related but no resolution yet: less/less.js#592

Any suggestions appreciated!

@thomaspark
Copy link
Owner

Hi, do you get this error with just the original bootstrap and swatchmaker files, no custom code added?

@megamattron
Copy link
Author

Apologies, this appears to be my fault. I went back to vanilla bootstrap and swatch and the error doesn't occur, I'll see if I can build back up and figure out where the error happens.

@thomaspark
Copy link
Owner

A couple of possibilities: you might need to wrap a value in quotes (eg url()), or you might be passing values with commas into a mixin (eg .box-shadow()) which can be problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants