Martin Kost

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

I fix this by using:

import Rails from "@rails/ujs"
Rails.start()

instead of

require("@rails/rails-ujs").start()

and then I added

import Rails from "@rails/ujs"

in every component where I use Rails

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.