Warning. Error encountered while saving cache … can't dump anonymous class

百般思念 提交于 2019-11-29 09:28:42

It is a known bug with the current release of Sass, updating the sass stylesheet will cause the caching error because of the Sprockets importer not serializing correctly. For the bug report see this.

It is a bug in sprockets, but if, like me you are using an older version of Rails (3.2) you may be able to fix the bug by using a different version of sass. This guy was able to get it working with sass 3.1.x: https://github.com/rails/sass-rails/issues/242#issuecomment-66231135

The thread mentioned there gives some good context and an explanation for how to handle solving the issue or working around an inability to upgrade to a much newer, fixed version of sprockets.

Basically, use sass/sass-rails/sprockets from around the time Rails 3.2.x was supported.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!