【问题标题】:Can no longer compile bootstrap 2.3.2 LESS with Webstorm 8.0.2. LESS compile plugin. Getting compiler error(s)不能再用 Webstorm 8.0.2 编译 bootstrap 2.3.2 LESS。 LESS 编译插件。获取编译器错误
【发布时间】:2014-05-18 18:40:18
【问题描述】:

我正在更新我使用 Botstrap v2.3.2 和 LESS 的旧项目之一。它曾经顺利编译,但现在我收到此错误:

LESS CSS Compiler Error
mixins.less: Parse Error: Unrecognised input (line 561, column 6) near .spanX 
(@index) when (@index > 0) { (~".span@{index}") { .span(@index); } .spanX(@index - 1);

问题似乎在这里:

.spanX (@index) when (@index > 0) {
  (~".span@{index}") { .span(@index); } // <-- line 561 in mixins.less
  .spanX(@index - 1);
}

不确定是什么问题。有什么想法吗?

【问题讨论】:

标签: less webstorm twitter-bootstrap-2


【解决方案1】:

作为 7-phases-max 在他的评论中重定向: https://stackoverflow.com/a/19553368/2712740

更改了出现错误的所有实例

  (~".span@{index}") { .span(@index); } // <-- line 561 in mixins.less

  .span@{index} { .span(@index); } // <-- line 561 in mixins.less

这是由于新版本的 LESS 编译器发生了一些重大变化。尽管它们很烦人,但这种突破性的变化绝对是好的(一如既往,样板越少越好)。
干杯

【讨论】:

    猜你喜欢
    • 2012-11-11
    • 2015-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多