推送到moovcloud时出现SASS编译错误?

时间:2013-04-30 21:30:23

标签: sass moovweb

当我推送到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工作,没有错误。我有点困惑。任何帮助将非常感激。

2 个答案:

答案 0 :(得分:1)

看起来您尝试使用的mixins不可用。

它们是否存在于您的scss文件中?你确定要导入main.scss中的所有内容吗?

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

本地事物可能会起作用,但生成的样式表可能包含错误。

答案 1 :(得分:1)

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