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

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2023 GoRails, LLC. All rights reserved.