Code Monkey home page Code Monkey logo

Comments (6)

chromice avatar chromice commented on June 9, 2024

Hi Chris,

I am confused: the error message says @scale-size is undefined, while you keep referring to @scale-base. The @scale-size variable is exported by .get-scale-size() which in turn is used by .font-size() and .use-baseline-grid(), if you pass a unitless number as the first argument.

Hope that helps.

from order.less.

cbracco avatar cbracco commented on June 9, 2024

@chromice Thank you for the reply. The error message is for @scale-base, I had a typo in my original response. I've corrected the error message above.

Is the @scale-base variable not accessible because of scoping?

from order.less.

cbracco avatar cbracco commented on June 9, 2024

@chromice I am able to replicate this error in a Codepen example, shown here: http://codepen.io/cbracco/pen/RNpgGg?editors=110

from order.less.

chromice avatar chromice commented on June 9, 2024

@cbracco Thanks for the test case! Codepen is using v1.7.5 (http://codepen.io/versions/) which either seem to have a bug or the version of cider I'm drinking is not compatible with it. ;-)

What version of Less are you using? Are you using the browser or command line variety?

from order.less.

chromice avatar chromice commented on June 9, 2024

@cbracco I've just tested all versions of Less and the minimum version supported is 2.0.0 I will probably bump it to 2.2.0 very soon.

from order.less.

cbracco avatar cbracco commented on June 9, 2024

@chromice nailed it! That was the problem. The version of gulp-less that I was using depended on a pre-2.0.0 version of Less. I upgraded gulp-less to the latest version, which subsequently upgraded its Less dependency to 2.2.0, and everything is peachy now. 👍

Thanks again for your help!

from order.less.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.