I'm going to remove active_admin from my angular rails app. So I ran the following commands.
rails destroy active_admin:install
rails destroy active_admin:resource product
And I met this error.
cannot load such file -- coffee_script
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application' %>
Try
rake tmp:cache:clear
or
try adding "gem 'coffee-rails', '~> 4.1.0'"
to the Gemfile and running bundle:install
.
in rails > 5.2
we need to use rake rails tmp:cache:clear
Having the same issue, none of the solutions above worked for me.
Using rails 5.2.2, I added gem 'coffee-rails', '~> 5.0.0
Then bundle:install
and rails tmp:cache:clear
Finally, I've restarted the server and all worked fine.
Hope this help.
It may be the cache. Try this: rake tmp:cache:clear
and restart your server.
Like the other answers say:
rake tmp:cache:clear
Likely, look in your assets/javascripts file: there may be some coffee script files in there. If you don't need them, then you can get can simply delete. Now try again and it should work.
Then add the following to your gemfile and run bundle install
gem 'coffee-rails', '~> 5.0.0'
It should now work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With