4

我对这个我似乎无法弄清楚的错误感到有点沮丧。我曾经有一个使用 css 文件的 html.erb 文件,但现在我切换到 scss 并添加了 sass-rails、compass-rails 和 susy。当我尝试加载同一页面时,它会生成此错误。

错误:

显示 [..]/app/views/layouts/shared.html.erb 其中第 # 行提出:

堆栈级别太深

(在 [..]/app/assets/stylesheets/sharepage_new/screen.css.scss)

从终端:

ActionView::Template::Error(堆栈级别太深(在 [..]/app/assets/stylesheets/sharepage_new/screen.css.scss)):sprockets (2.1.3) lib/sprockets/context.rb:180

渲染 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) 渲染 /Users/me/ .rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms) 渲染/Users/me/.rvm/gems/ruby -1.9.3-p194/gems/actionpack-3.2.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb 在救援/布局中(3.5ms)

来自 Gemfile:

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'compass-rails', '>= 1.0.3'
  gem 'susy', git: "git://github.com/ericam/susy.git"
  gem 'uglifier', '>= 1.0.3'
end
4

1 回答 1

0

这不是缩进错误吗?不应该是scss th的问题..

于 2012-09-27T06:20:18.147 回答