2013-04-30 36 views
2

当我推到moovcloud,我得到这个错误:SASS在推送到moovcloud时编译错误?

| Compiling Sass assets... 
    | gosass error: ~/assets/stylesheets/pages/accounts/address_book.scss:6: error: mixin border-radius is undefined 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/accounts/address_book.scss:6 
    | gosass error: ~/assets/stylesheets/pages/accounts/login_details.scss:6: error: mixin border-radius is undefined 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/accounts/login_details.scss:6 
    | gosass error: ~/assets/stylesheets/pages/accounts/login_page.scss:3: error: mixin display-label is undefined 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/accounts/login_page.scss:3 
    | gosass error: ~/assets/stylesheets/pages/accounts/payment_info.scss:7: error: mixin display-label is undefined 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/accounts/payment_info.scss:7 
    | gosass error: ~/assets/stylesheets/pages/customer/locate_store.scss:5: error: reference to unbound variable $gray4 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/customer/locate_store.scss:5 
    | gosass error: ~/assets/stylesheets/pages/subpages.scss:9: error: mixin account-link-button is undefined 
    | Backtrace: 
    | e: ~/assets/stylesheets/pages/subpages.scss:9 

任何想法可能是什么造成这样或为什么呢?我的git工作目录很干净,所以所有文件都打开了。我的mlocal工作,没有错误。我有点困惑。任何帮助将非常感激。

回答

1

问题很简单,列出的文件没有以“_”开头。如果出现此错误,请确保所有导入的文件都以“_”开头。

1

它看起来像你试图使用的mixins不可用。

它们是否存在于您的scss文件中?你确定你在main.scss中导入了一切吗?

尝试在样式表中搜索这些mixin以找出它们可能定义的位置。如果你找不到它们,它们就不存在。

本地可能出现它们工作的情况,但生成的样式表可能包含错误。

+0

只要仔细检查它在本地工作,我就可以在隐身模式下打开网页。 您也可能想要移除** assets/stylesheets/.css **文件夹中的本地CSS缓存。 – nmakiya 2013-05-01 18:18:55

+0

不幸的是这些都不是问题。 问题是,locate_store.scss没有以“\ _”开头。对于libsass,所有导入的文件必须以“\ _”开头 – 2013-05-13 17:27:58