LESS: Unrecognized input error when using Bootstrap

前端 未结 1 850
无人及你
无人及你 2020-11-27 22:34

After upgrading Harp, I started getting an Unrecognized Input error in an irrelevant line of CSS.

Less -> CSS (Unrecognised input) /Users/jorge/Dr

相关标签:
1条回答
  • 2020-11-27 22:52

    After digging for a while, I found that the error was coming from the mixin.less file where the #grid stuff was getting defined.

    This is what the file had originally:

    (~".span@{index}") { .span(@index); }
    

    After reading the LESS change log, I found that they changed the syntax so you can now use variables directly without needing the ~ hack. So I changed my mixin.less to look like this:

    .span@{index} { .span(@index); }
    

    There are a couple of other lines that you need to change, but they all follow the same format.

    (~".offset@{index}") { .offset(@index); } changes to → .offset@{index} { .offset(@index); }

    0 讨论(0)
提交回复
热议问题