2

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 はエラーなしで動作します。私は少し混乱しています。どんな助けでも大歓迎です。

4

2 に答える 2

1

使用しようとしているミックスインが利用できないようです。

それらはあなたのscssファイル内に存在しますか? main.scss のすべてを確実にインポートしていますか?

スタイルシートでこれらの mixin を検索して、それらが定義されている可能性がある場所を見つけてください。見つからない場合、それらは存在しません。

ローカルでは機能しているように見えても、結果のスタイルシートにはエラーが含まれている可能性があります。

于 2013-05-01T01:10:32.210 に答える
1

問題は単に、リストされたファイルが「_」で始まっていないことです。このエラーが発生した場合は、インポートされたすべてのファイルが「_」で始まっていることを確認してください。

于 2013-05-13T17:29:42.103 に答える