2014-03-25 133 views
0

我正在部署到Heroku並面臨此錯誤。這個錯誤不會出現在我的本地機器上。部署到Heroku的Sass錯誤

我還沒有找到太多的谷歌搜索這個問題。任何人都可以提供解決這個問題的指針嗎?

預先感謝

問候, SB

錯誤跟蹤-----------------------------

undefined method `declare' for Sass::Script::Functions:Module 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:8:in `<module:Functions>' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:4:in `<top (required)>' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:5:in `require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:5:in `load!' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass.rb:74:in `<top (required)>' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `each' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in `block in require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `each' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in `require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:131:in `require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/config/application.rb:7:in `<top (required)>' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/Rakefile:5:in `require' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/Rakefile:5:in `<top (required)>' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/lib/rake/application.rb:70:in `run' 
     /tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/rake-10.0.3/bin/rake:33:in `<top (required)>' 
     vendor/bundle/bin/rake:16:in `load' 
     vendor/bundle/bin/rake:16:in `<main>' 
+1

嘗試添加'require'sass''到你的'config.ru'文件。 – CWitty

+0

@CWitty試過了。沒有運氣。 –

回答

0
/tmp/build_da95c3d7-39ce-4b2e-9cdd-0fa67ee25910/vendor/bundle/ruby/2.0.0/gems/bootstrap-sass-3.1.1.0/lib/bootstrap-sass/sass_functions.rb:8:in `<module:Functions>' 

這是你的錯誤,並here's the file

require 'sass' 

module Sass 
    module Script 
    module Functions 
     # LARS: Snatched from compass - 2011-11-29 - used for gradients in IE6-9 
     # returns an IE hex string for a color with an alpha channel 
     # suitable for passing to IE filters. 
     def ie_hex_str(color) 
     assert_type color, :Color 
     alpha = (color.alpha * 255).round 
     alphastr = alpha.to_s(16).rjust(2, '0') 
     Sass::Script::String.new("##{alphastr}#{color.send(:hex_str)[1..-1]}".upcase) 
     end 
     declare :ie_hex_str, [:color] 
    end 
    end 
end 

你應該嘗試在本地預編譯你的資產&看看錯誤回來了。除此之外,你必須谷歌這個錯誤&文件的答案:)

+0

我試着在本地預編譯資產,但沒有幫助。最終我刪除了「bootstrap-sass」,「> = 2.0.1」,它工作正常。 –