1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LoadError (cannot load such file -- sassc)

Posted at

Railsでscssを適用しようとしたらLoadError (cannot load such file -- sassc)

application.html.erb
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>

上記記載後、ブラウザで

cannot load such file -- sassc

のエラーとなった。

原因

gemfile 中の gem "sassc-rails" がRails Ver7からはコメントアウトされており、インストール時に適用されないとのこと。

コメントアウト解除後、bundle install により無事解決

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?