ACodei Codando said about 2 years ago on Hotwire Modals :
  I did 
bin/importmap pin bootstrap

and works without cdn