bootstrap-4dropdownpopper.js

Uncaught TypeError: n is not a constructor with Bootstrap 4 dropdown


I have multiple dropdown menus in my page. Located inside the nav works fine, but the inside of the page does not work

Located inside the nav

enter image description here

inside of the page

enter image description here

enter image description here

what is the problem? Thank you.


Solution

  • Bootstrap is not yet compatible with Popper.js version 2, see https://github.com/snapappointments/bootstrap-select/issues/2385#issuecomment-579892665.

    The bundle works because it bundles the right version of Popper, see https://getbootstrap.com/docs/4.5/getting-started/introduction/.