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

Compilation error on Windows #3607

Closed
sanand0 opened this issue May 26, 2012 · 1 comment
Closed

Compilation error on Windows #3607

sanand0 opened this issue May 26, 2012 · 1 comment

Comments

@sanand0
Copy link

sanand0 commented May 26, 2012

When compiling bootstrap.less on Windows using less.js-windows, I get the following error:

ERROR:
  type: Syntax
  message: 'eval' is null or not an object
  filename: D:\ext\bootstrap\less\bootstrap.less
  column: -1
  extract: ,, * Bootstrap v2.0.3

This vanishes when the following code in button.less:

.btn {

  ... // I've removed a bunch of lines here

  border-bottom-color: darken(@btnBorder, 10%);
  .border-radius(4px);
  .ie7-restore-left-whitespace(); // Give IE7 some love
  .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
}

is split into two parts:

.btn {

  ... // I've removed a bunch of lines here

  border-bottom-color: darken(@btnBorder, 10%);
  .border-radius(4px);
}

// Just breaking the previous declaration into two parts

.btn {
  .ie7-restore-left-whitespace(); // Give IE7 some love
  .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
}

Anyone knows what's causing this issue?

@mdo
Copy link
Member

mdo commented May 26, 2012

We can't offer support on the Windows build client, sorry—outside our realm. However, it seems like it's having difficulty in parsing the .box-shadow mixin's escaping. Try using this for that line instead:

@box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);

Best guess—otherwise ask on the mailing list.

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