更新 Rails 和其他 gem 后出现 Sass 或 Foundation 错误 [英] Sass or Foundation Error after updating Rails and other gems
问题描述
我最近更新了 rails 和其他一些 gem.但是现在我收到以下错误:
I have recently updated rails and some other gems. However now I get the following error:
Sass::SyntaxError at/Mixin "exports" 不接受内容堵塞.(在/Users/mikhailja/Sites/marketing/app/assets/stylesheets/application.css.scss:341)
Sass::SyntaxError at / Mixin "exports" does not accept a content block. (in /Users/mikhailja/Sites/marketing/app/assets/stylesheets/application.css.scss:341)
我正在使用:
- 红宝石 2.1.2
- 导轨 4.1.8
- sass 3.2.2
- sass-rails 2.0.0
- 基础导轨 5.4.5.0
在尝试了多个 gem 版本后问题消失了一段时间,但现在在遇到堆栈级别太深错误后突然又回来了.
The problem went away for a while after trying numerous gem versions but now all of a sudden its back after getting a stack level too deep error.
我已经在一个新应用中尝试了相同版本的基础,并且效果很好.
I've tried the same version of foundation in a new app and it works perfectly.
如果您能帮助我们解决这个问题,我们将不胜感激.
Any help to get to the bottom of this problem would be very much appreciated.
推荐答案
我找到了解决方案.以下是我为遇到此问题的其他人所做的:
I found a solution. Here is what I did for anyone else experiencing this problem:
将foundation-rails gem 降级到5.1.1.0 版(这是我的原始版本),此时我的rails 服务器无法正常启动.
Downgraded foundation-rails gem to version 5.1.1.0 (this was my original version) at this point my rails server would not start properly.
然后将foundation-rails更新到5.3.0.0版
Then updated foundation-rails to version 5.3.0.0
我不确定是否只是 gem 版本兼容性问题,或者降级/升级是否有所不同.
I'm not sure if there was just a gem version compatibility issue or if the downgrade/upgrade made the difference.
无论如何,现在一切正常,我的测试通过了!
Anyway, now everything works and my tests are passing!
这篇关于更新 Rails 和其他 gem 后出现 Sass 或 Foundation 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!