Skip to content

jquery-rails with Spockets 4 JS #277

Open
@samstickland

Description

@samstickland

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions