Closed happysalada closed 6 years ago
ok I'm guessing it's because of minification. I tried to not mangle, but it doesn't work either, I will try to ignore simply that package for minifcation.
not minifying that module, removed the problem. Did anybody else encounter a problem with minification ? maybe I'm just doing something wrong.
Looks like https://github.com/stimulusjs/stimulus/issues/38. Feel free to chime in there. It would be great to figure out the exact configuration in Brunch / Phoenix that's problematic.
It was exactly that! turning off mangling worked. Thanks!
I don't know if I am doing things wrong, but here goes. I have the following controller
I have a websockets linked to that controller. When my websockets fires the "update" event (create by me) on the element, I want the element to re-render (hence calling the show function of the controller) On local, I didn't have any problem and that construct worked. However when deploying to production (on heroku if it matters at all), I get the following error
maybe I'm doing something wrong here.