jquery-rails with Spockets 4 JS
samstickland opened this issue · 1 comments
samstickland commented
Hi,
Is there a way I can use this gem with the Sprockets 4 JS support?
Doing a # require jquery
in application.coffee
yields:
couldn't find file 'jquery' with type 'text/coffeescript' Checked in these paths:
...
/Users/samuelstickland/.gem/ruby/2.6.6/gems/jquery-ui-rails-6.0.1/app/assets/images
/Users/samuelstickland/.gem/ruby/2.6.6/gems/jquery-ui-rails-6.0.1/app/assets/javascripts
/Users/samuelstickland/.gem/ruby/2.6.6/gems/jquery-ui-rails-6.0.1/app/assets/stylesheets
/Users/samuelstickland/.gem/ruby/2.6.6/gems/jquery-rails-4.4.0/vendor/assets/javascripts
...
And it doesn't work with jquery.js
either.. Seems like it's looking for a coffeescript version? Even when .js
is explicitly specified:
couldn't find file 'jquery.js' with type 'text/coffeescript' Checked in these paths:
samstickland commented
On reflection, I think this might be a question for sprockets. I'll leave it open here for now, but also happy to close it and open a sprockets issue.