Error importing mini_magic: File to import not found or unreADable: mini_magic

Asked 2 years ago, Updated 2 years ago, 105 views

I am currently creating my own application.
mini_magic was bundle install to post, resize, and paste the image on the page.
When application.scss describes @import,

Sass::SyntaxError
File to import not found or unreliable: mini_magic.

An error has occurred.I'm investigating various things, but I still don't know the cause.
I would appreciate your advice.

application.scss

@import "bootstrap";
@import "font-awesome";
@import "mini_magic";

Error Contents

File to import not found or unreliable: mini_magic.
Load paths:
/home/ubuntu/workspace/otetsudai/app/assets/config
/home/ubuntu/workspace/otetsudai/app/assets/images
/home/ubuntu/workspace/otetsudai/app/assets/javascripts
/home/ubuntu/workspace/otetsudai/app/assets/stylesheets
/usr/local/rvm/gems/ruby-2.4.0/gems/bootstrap_form- 
2.7.0/app/assets/stylesheets
/usr/local/rvm/gems/ruby-2.4.0/gems/jquery-rails- 
4.3.3/vendor/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/swiper-rails- 
1.0.4/app/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/swiper-rails- 
1.0.4/app/assets/stylesheets
/usr/local/rvm/gems/ruby-2.4.0/gems/font-awesome-rails- 
4.7.0.4/app/assets/fonts
/usr/local/rvm/gems/ruby-2.4.0/gems/font-awesome-rails- 
4.7.0.4/app/assets/stylesheets
/usr/local/rvm/gems/ruby-2.4.0/gems/coffee-rails- 
4.2.2/lib/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/actioncable-5.2.0/lib/assets/completed
/usr/local/rvm/gems/ruby-2.4.0/gems/activestorage- 
5.2.0/app/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/actionview-5.2.0/lib/assets/completed
/usr/local/rvm/gems/ruby-2.4.0/gems/turbolinks-source- 
5.1.0/lib/assets/javascripts
/home/ubuntu/workspace/otetsudai/node_modules
/usr/local/rvm/gems/ruby-2.4.0/gems/popper_js-1.12.9/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/bootstrap-4.1.1/assets/stylesheets
/usr/local/rvm/gems/ruby-2.4.0/gems/bootstrap-4.1.1/assets/javascripts
/usr/local/rvm/gems/ruby-2.4.0/gems/bootstrap-4.1.1/assets/stylesheets

I would appreciate it if you could give me some advice when you have time.
I look forward to your kind cooperation.

ruby-on-rails ruby sass

2022-09-30 21:33

1 Answers

https://teratail.com/questions/145807#reply-220991

I don't think it's necessary to import mini_magic into application.scss.
The following URL describes how to use mini_magic, so please read it.
https://keruuweb.com/rails-minimagick%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9/


2022-09-30 21:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.