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

"Cannot call method slice of undefined" #159

Closed
bx2 opened this issue Dec 9, 2010 · 12 comments
Closed

"Cannot call method slice of undefined" #159

bx2 opened this issue Dec 9, 2010 · 12 comments

Comments

@bx2
Copy link

bx2 commented Dec 9, 2010

I get this error every time I try to render less file with less.js in Chrome.
In Firefox the error is - d.extract[1] is undefined.

I'm using latest less.js from dist/ directory.

@andrzej-aa
Copy link

That problem is caused by this code:
.aa {
color: red;
strong {
text-decoration: underline;
.aa;
}
}

@bx2
Copy link
Author

bx2 commented Mar 15, 2011

yea - I solved till now, but still more clear error would be awesome :)

@burlapdesign
Copy link

@bx2 and @andrezj-aa and I have the same issue with similar code how did you solve the issue. Thanks for helping an utter n00b

@javifr
Copy link

javifr commented Jun 2, 2011

Hi bx2 ! how did you solve it?

@bx2
Copy link
Author

bx2 commented Jun 2, 2011

Well - it was a problem with the my stylesheet code - like @andrzej-aa commented.
I found that it is much better no to nest statements too much - less.js was not handling that too good afaik ;)

As for the exact example - sorry it was so long ago that I just don't remember - my bad because I should publish the solution here - sorry guys :(

@zkhalapyan
Copy link

I also have this problem while compiling Tweeter Bootstrap.

@korjavin
Copy link

yep, twitter bootstrap crashed with this error

@zkhalapyan
Copy link

@korjavin You should use an older version of Less.

@toddsundsted
Copy link

@korjavin/all I just ran into this problem with less v1.2.0 (specifically http://lesscss.googlecode.com/files/less-1.2.0.min.js). I downgraded to less v1.1.5 (http://lesscss.googlecode.com/files/less-1.1.5.min.js) and the problem disappeared.

@zkhalapyan
Copy link

So far Less v1.2.0 is very buggy - I wouldn't suggest using it until it's more stable.

-----Original Message-----
From: Todd Sundsted [mailto:reply@reply.github.com]
Sent: Monday, January 16, 2012 5:56 AM
To: Khalapyan, Zorayr
Subject: Re: [less.js] "Cannot call method slice of undefined" (#159)

@korjavin/all I just ran into this problem with less v1.2.0 (specifically http://lesscss.googlecode.com/files/less-1.2.0.min.js). I downgraded to less v1.1.5 (http://lesscss.googlecode.com/files/less-1.1.5.min.js) and the problem disappeared.


Reply to this email directly or view it on GitHub:
#159 (comment)

@lukeapage
Copy link
Member

This bug is not very specific.. I read it as "improve errors" - and later on you talk about less being buggy without giving examples. better error handling is in #16 so I consider this a duplicate. Please raise a new bug for issues if it is not a dupe and you have a test case.

@DeFeNdog
Copy link

DeFeNdog commented Mar 4, 2014

I had the same problem in Bootstrap3 and was able to fix it by initiating carousel within jQuery(document).ready. I also made sure to match the markup as specified in http://getbootstrap.com/javascript/#carousel. In my case, I was missing the active class in

. Cheers

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

No branches or pull requests

9 participants