💬 | Bootstrap 5 - SASS Starter Kit | Why bootstrap is loaded from node module and not from libraries.yml like Barrio? (bug with the navbar)
I was getting this same error with the navbar and they weren't opening or closing. After much head scratching found out that the popper.js file had not been included in the libraries.yml file when I created my subtheme. The bootstrap.bundle.min.js, I'm guessing includes popper.
So for anyone that is also having issues check that you have the below file structure in libraries.yml and are not missing the popper.min.js file:
global-styling:
version: VERSION
js:
js/popper.min.js: { weight: -49 }
js/bootstrap.min.js: { weight: -48 }
js/barrio.js: {}
js/custom.js: {}