David Kimura PRO said over 3 years ago on Hotwire :
Note, if you were using Turbolinks/Rails UJS in your app previously, you should remove them:

  1. Remove the turbolinks gem from your Gemfile.
  2. Run ./bin/bundle install
  3. Run ./bin/yarn remove turbolinks @rails/ujs
  4. Remove these from your application's JavaScript pack:
import Rails from "@rails/ujs"
import Turbolinks from "turbolinks"
Rails.start()
Turbolinks.start()

It sounds like we should also remove ujs from Webpacker. This was found on https://github.com/hotwired/turbo-rails