【问题标题】:Meteor Semantic-UI less compile errorMeteor Semantic-UI 少编译错误
【发布时间】:2023-03-06 18:32:01
【问题描述】:

我正在尝试使用官方语义 UI 流星包。我按照所有步骤生成文件夹,但出现此错误:

   While building the application:
   client\lib\semantic-ui\theme.import.less:23:10: Less compiler error:
   expected ')' got 'o'

我检查了文件和它的这一行:

@import (optional) "@{themesFolder}/@{site}/globals/site.variables";

我不确定是什么问题,但我认为与(可选)有关。

我该如何解决这个问题?

【问题讨论】:

    标签: meteor semantic-ui


    【解决方案1】:

    您应该尝试删除官方 Meteor less 包并添加 less-autofixer Meteor 包。

    meteor add flemay:less-autoprefixer
    

    这是官方语义ui包的必要前提。

    【讨论】:

    • 我的项目中有它
    • 非常抱歉建议使用官方的 Meteor less 包。显然语义 ui 包需要 less autoprefixer 包,这与官方的 Meteor less 包不兼容。查看我编辑的答案以了解如何安装它。
    猜你喜欢
    • 1970-01-01
    • 2016-03-29
    • 2018-07-16
    • 1970-01-01
    • 1970-01-01
    • 2015-11-14
    • 2023-03-24
    • 2013-08-11
    • 2013-01-10
    相关资源
    最近更新 更多