Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadError: cannot load such file -- coffee_script #1544

Closed
Paxa opened this issue Jul 22, 2012 · 14 comments
Closed

LoadError: cannot load such file -- coffee_script #1544

Paxa opened this issue Jul 22, 2012 · 14 comments

Comments

@Paxa
Copy link

Paxa commented Jul 22, 2012

Use Rails 3.2.6 and latest ActiveAdmin from git

Started GET "/assets/active_admin.js" for 127.0.0.1 at 2012-07-22 14:01:02 +0800
Served asset /active_admin.css - 304 Not Modified (38ms)
Error compiling asset active_admin.js:
LoadError: cannot load such file -- coffee_script
  (in /Users/pavel/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-5c4e75a6d36b/app/assets/javascripts/active_admin/lib/namespace.js.coffee)
Served asset /active_admin.js - 500 Internal Server Error

Should coffeescript be in gem dependences?

@jpmckinney
Copy link
Contributor

Did you remove "coffee-rails" from your Gemfile? It's standard with Rails 3.2

@rmw
Copy link
Contributor

rmw commented Aug 28, 2012

I had the same problem and adding coffee-rails to our assets group and it worked.

@jpmckinney
Copy link
Contributor

@gregbell @pcreux Should we add coffee-rails to an assets group in the Gemfile?

@jpmckinney
Copy link
Contributor

Duplicates #1259

@fabioaanthony
Copy link

FYI if you're having this issue, it may be the cache. Try this: rake tmp:cache:clear and restart your server.

@zandernelson
Copy link

@fabioanselmo this fixed my issue. Could you explain why this is necessary?

@ghost
Copy link

ghost commented Oct 7, 2016

@fabioanselmo Not worked for me

@Matkezi
Copy link

Matkezi commented Oct 14, 2016

try adding "gem 'coffee-rails', '~> 4.1.0'" to the Gemfile and running bundle:install. It worked for me.

@assassinsurvivor
Copy link

just remove coffee script its useless

@ephekt
Copy link

ephekt commented Aug 18, 2017

Since this is the top hit, adding this in for others. The cache clearing did not work. But I did find I had created a scaffold prior to disabling coffee-script from the Gemfile so if you did that, go find .coffee's in your js assets folder and remove them. Things are working again.

@pachun
Copy link

pachun commented Aug 18, 2017

@ephekt 3 hours ago, huh? How fortunate for me. Thank you!

@bobv
Copy link

bobv commented Jun 17, 2018

Assassinsurvivor is right... just remove it and it's corresponding scripts on your erb files.

@jamesst20
Copy link

I had removed CoffeeScript Gem + all .coffee and associated files.

What worked for me is "rake tmp:cache:clear".

pachun added a commit to pachun/listen_along_api that referenced this issue Jun 6, 2019
Causing `rake assets:precompile` to fail, which heroku runs pre-deploy.

activeadmin/activeadmin#1544

(Note the Tom and Jerry comment in that thread for a laugh)
@wakgari
Copy link

wakgari commented Jun 6, 2020

just actvate the coffee_script from the gemfile, I mean, remove the #
it worked for me

@activeadmin activeadmin deleted a comment from leoxmessi Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests