I tried install bootstrap 4, and included following links
I encountered the same issue if I use popper.js from CDN network like cdnjs
.
If you observe the source code of Bootstrap 4
examples like for example Navbar you can see that popper.min.js
is loaded from:
I included that in my project and the error is gone. You can download the source code from
https://getbootstrap.com/docs/4.1/assets/js/vendor/popper.min.js
and include in your project as a local file and it should work.