I'm setup rails 7 app. And i wan't to add bootstrap and jquery using import map. I'll try but didn't work. I follow this step if i made any mistake please correct.
- rails new demo
- bundle install
- create demo controller with index and add some bootstrap code.
- Then i run this command bin/importmap pin bootstrap
So. in Import map added this two line pin "bootstrap", to: "https://ga.jspm.io/npm:bootstrap@5.1.3/dist/js/bootstrap.esm.js" pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/core@2.11.5/lib/index.js"
If i already pin bootstrap in importmap.rb file. Why it's not working or i missing some configration.
Thanks for replay.