arnaudrioche PRO
Joined 5/27/2021
arnaudrioche PRO said over 2 years ago on Slim Select with Stimulus :
Hi Dave! 
Thanks for the episode. Super clear and helpful as usual!
I did something really similar as the example for an app I am coding. It works perfectly in local host.
However, when I push to Heroku, looks like the slim select.css is never imported.

In local:



On Heroku:


I tried to move the line import "slim-select/dist/slimselect.css" from the stimulus controller to the app.js and to the app.scss with no result. I have no error thrown in the console.

Any idea?

Thanks for your help!

arnaudrioche PRO said over 2 years ago on Slim Select with Stimulus :
Hi  ,
Oops, I didn't. Only had:
<%= stylesheet_link_tag 'application',
          media: 'all',
          'data-turbolinks-track': 'reload' %>

    <%= javascript_pack_tag 'application',
          'data-turbolinks-track': 'reload',
          defer: true %>

Added the line <%= stylesheet_pack_tag 'application' %> and now it works.

Thank you very much for your help