Hello All. 1st Post and thanks to David for this great resource.
SO...
I created a rails website with the help of youtube, chatgpt and google
So sorry if i get terms wrong.
Website is Happy-Me.com
It's a series of YouTube channel rankings and some maps etc. Pretty basic.
I've found I've had issues everytime I've had to add new .js gems.
they just dont seem to work.
I think.. I am loading them with importmap and javascript/application.js
But in truth I have to add the import to import info to applicatipn.html.erb to get things working
Just can't get importmap to do anything. I delete it's content and the site works fine.
Now for a long winded question sorry.
What is the best way to manage bundle and install these js gems?
ChatGPT wants me to use webpacker but it says that is retired.
Importmap I can't get working.
And I see David uses bundleES or something like that?
I just want the best clean way to do this for 2023 and to get that working.
For more FYI I tried to get the world example working Happy-Me.com/wordle (Tailwind CSS)
But couldn't get the controller.js for it to even see it never mind work.
Any help would be awesome
Thanks
PauL
Any help would be great.
This is header of application.html.erb I have to manually add things like chartkick to make it work
this is contif/importmap.rb
app/javascript/application.js
Again seems to do nothing.
Do i need to remove sprockets?
Also Assests manifest is
Changing that does break the site
Thanks