Rails 5: Sprockets :: FileNotFound - could not find jquery-ui / autocomplete file with type 'application / javascript'

I just updated our Rails application from 4.2.5to5.0.1

The rails server loads fine, but when I try to load the page, I get an error:

Sprockets::FileNotFound - couldn't find file 'jquery-ui/autocomplete' with type 'application/javascript'

When I run bundle, I see

Using jquery-rails 4.2.2
Using jquery-ui-rails 6.0.1
+4
source share
2 answers

It looks like the file paths have changed. According to gem readme :

Attention:

- jQuery UI 1.10, 1.11 1.12, 6.0, , , : 5.0, 4.2 .

+1

application.js

//= require jquery-ui/autocomplete

 //= require jquery-ui/widgets/autocomplete
+1

Source: https://habr.com/ru/post/1666322/


All Articles