bootstraapを導入した際に、以下のようなエラーが発生してしまい、詰まっています。
SassC::SyntaxError in Pages#index
Error: File to import not found or unreadable: bootstrap.
on line 16:1 of app/assets/stylesheets/application.scss
@import "bootstrap";
ruby
1*= require_self 2 */ 3@import "bootstrap";
バージョン
- Rails 6.0.4
- ruby 2.6.3p62
- gem 3.0.3
- bootstrap 5.0
app/assets/stylesheets/application.scss
scss
1/* 2 * This is a manifest file that'll be compiled into application.css, which will include all the files 3 * listed below. 4 * 5 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's 6 * vendor/assets/stylesheets directory can be referenced here using a relative path. 7 * 8 * You're free to add application-wide styles to this file and they'll appear at the bottom of the 9 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS 10 * files in this directory. Styles in this file should be added after the last require_* statement. 11 * It is generally better to create a new file per style scope. 12 * 13 *= require_tree . 14 *= require_self 15 */ 16@import "bootstrap";
導入時で参考にした記事
https://qiita.com/tsuchiya_2/items/3ddc25c9b92cb66d9cd6
どのようにすれば解決できますでしょうか。
恐れ入りますが、ご教授のほどよろしくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。