I received this error (TypeError: i.createPopper is not a function
) each time when popovers should be shown. Previously I had to make use of the Separate Popper and Bootstrap JS (Option 2) – due to conflict with other scrips. However this is no longer necessary in my project, with Bootstrap 5.1.1.
Including only the Bootstrap bundle with popper – as per @Kevin’s comment above – fixed the issue for me – And the previous conflicts don’t seem to be an issue anymore. All popovers, tooltips, modals, sidebars etc. seem to now be working properly:
<body>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
</body>