• Resolved DavidFraiser

    (@davidfraiser)


    I am consistently getting “undeclared variable” errors when compiling the LESS files. If it was a just a few I would comment them out and move on, but when I comment out one two more pop-up. I’ve tried 2 different compilers, so it’s not that. The files are UTF-8 with no BOM, so it’s not that, either. I’m at a loss.

    I’m also at a loss as to why no one else is reporting this issue, either here or on GitHub.

    Here’s one example:
    variable @grid-float-breakpoint is undefined @media (min-width: @grid-float-breakpoint) {

    Is it possible to just edit the .css files directly? I remember seeing a comment from you somewhere saying that was possible, with a caveat that “you’ll be missing out on all LESS has to offer.”

    I mean sure, LESS is cool and all that, but I’ve spent 2 days already messing with different compilers and editors, thinking they were the problem. I just need to get this project up and running. I can do “cool” another time when I’m not under a deadline.

    I don’t mean to sound ungrateful at all, it’s just frustrating when 2 different compilers error out on code I haven’t touched.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author DevDm

    (@devdm)

    David maybe you should zip your entire LESS directory and send it to me.

    [email protected]

    I think maybe you are trying to do something and not making the right connections with what to compile and where.

    You can always just edit the style.css file of your child theme to add any CSS. You do not have to compile any of the LESS if you don’t want to.

    Thread Starter DavidFraiser

    (@davidfraiser)

    Thanks for the reply. From what I could find on StackOverflow, etc it’s a common error. Most people ignore them, but I don’t like to ignore coding errors.

    And thank you for the offer to look at the directory, but that really wouldn’t solve anything. It isn’t rocket science, I have WinLESS open, I edit the .LESS file, the compiler “crunches” it into CSS, which I upload to the site. The errors two different compilers are reporting have to do with files I haven’t touched. The only files I editted were custom.less and navbar.less. The compiler(s) didn’t report any errors in those.

    Theme Author DevDm

    (@devdm)

    I don’t think it is that common really when everything is implemented properly.

    I’d like to help you figure out what you are doing wrong to save you pain in the future and not have to ignore errors. ??

    Let me know if you want to peruse it further. I’ll be available.

    Thread Starter DavidFraiser

    (@davidfraiser)

    For right now I’m just adding the CSS directly into the child style.css, and that’s working perfectly. I’m migrating a site that was written using Bootstrap2, and your theme/framework has been the easiest to accomplish that.

    At some point in the future I’ll reinstall your theme (a fresh copy) on another test site and recreate the changes, taking screenshots of any errors WinLESS reports and send them to you. I do very much appreciate your offer to help, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undeclared variables when compiling LESS’ is closed to new replies.