Good morning. I am experiencing problems with Stimulus controllers and namespaces following the name convention specified in Stimulus documentation.
When I use my controllers like this everything works as expected:
/controllers/gifts_controller.js
data-controller="gifts"
If I use the controller this way, nothing works:
/controllers/frontend/gifts_controller.js
data-controller="frontend--gifts"
Stimulus documentation specifies that the name convention for controllers in subfolders must be like the second example, but it is not working. No errors, it's just like if it doesn't exist.
Any ideas?
Edit: Sorry I wrote something wrong