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

jquery-rails with Spockets 4 JS #277

Open
samstickland opened this issue Aug 18, 2020 · 1 comment
Open

jquery-rails with Spockets 4 JS #277

samstickland opened this issue Aug 18, 2020 · 1 comment

Comments

@samstickland
Copy link

samstickland commented Aug 18, 2020

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
Copy link
Author

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.

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

1 participant