Me again 😬 We have stimulus controllers for coun...
# avo-2
a
Me again 😬 We have stimulus controllers for country/province/city select boxes that work on local but not on our staging environment. I have verified on staging that our license key is working and active. Not sure what else to check?
l
Hey Serene👋
Are you getting any JS erros in the console? anything from the controller?
a
console shows a 404 error on the controller
so maybe a routing thing? i don't understand enough about how avo works to debug why it would work on local but not on staging
l
Hmm, it should not change anything in the routing based on environments
Have you made any changes?
… to other things, like avo controllers or resources maybe?
a
hmmm ok I will do some digging. one of the other devs wrote it and I'm just helping to debug. Will look into it more and bring back more info!
l
Sounds good. Check the latest changes to see if anything looks suspicious
a
I suspect it's asset pipeline fun so I am going to start there
I see documentation for webpacker and sprockets but not for importmap
I'm guessing it will be similar to the sprockets docs though
l
That’s correct
You should have a new entrypoint for the js file for Avo in importmaps
a
yup it's probably our issue though, and not one with avo
I think I've gone through at least 3 or 4 asset pipeline types in my rails career lol
l
Lol
I know what you mean
One of those things
I am quite happy with js bundling with esbuild
Pretty fast and straightforward