最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sass - How to use SCSS in a rails 8 project? - Stack Overflow

programmeradmin0浏览0评论

I just started a new Rails 8 (Ruby 3.4.1) project with the new propshaft asset pipeline and I can't get SCSS to work. I've tried adding the sassc-rails gem to my gemfile, like in my recent Rails 7 project, but when I run bundle install, I get an error message that looks life this :

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
An error occurred while installing sassc (2.4.0), and Bundler cannot continue.

In Gemfile:
  sassc-rails was resolved to 2.1.2, which depends on
    sassc

I've tried replicating anything related to style and file imports in my new app from my rails 7 app, but nothing worked for me. Any idea how to use SCSS in Rails 8 ?

发布评论

评论列表(0)

  1. 暂无评论