Ask A Question

Notifications

You’re not receiving notifications from this thread.

Stimulus JS controller not working

Gursimranjit Singh Channa asked in Javascript

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....

Reply

hey were you able to find the issue?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.