Gursimranjit Singh Channa

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Stimulus JS controller not working

I've taken a clone of one of the projects and I'm following the general setup commands. When I'm trying to create a new js controller(stimulus js) or defining any new method in the existing js controller, these were not triggered from the html.erb pages, from data-controller & data-action. Seems like the changes that I'm making are not working in the server.
I'm getting - Error invoking action "click->controller_name#method_name"
The weird part is it's working in one of my teammate's systems.
Anyone....

logo Created with Sketch.

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

© 2022 GoRails, LLC. All rights reserved.