This can happen when jQuery is turned on twice.
For users using Rails, jQuery is already enabled by default (check app/assets/javascripts/application.js):
//= require jquery
Enabling jQuery again, for example with a tag <script>in app/views/layouts/application.html.erb, will result in this error.
The solution is to remove the tag <script>in app/views/layouts/application.html.erb.
source
share