Error: Bootstrap dropdown require Popper.js (Bootstrap 4 - scrollspy)

Hello, I’d like to thank you for freeCodeCamp, it is really great project.
When I am trying use scrollspy with Bootstrap 4, there is “Error: Bootstrap dropdown require Popper.js (https://popper.js.org)” in browser console and scrollspy is not working. After I had manually added popper.js from another source everything worked fine.
In Javascript CodePen settings there is no such option to add Popper.js and I think it could be really frustrating for begginers when they are trying to add scrollspy or another function that uses jQuery to some of their projects and it is not working.

Sorry for my English. :slight_smile:

1 Like

Codepen can realistically only have a few of the most common libraries in the dropdown. NPM, the javascript package manager has over half a million packages listed (which you can get urls for via UNPKG). CDNjs, the front-end CDN has 72000 packages. That’s why there are inputs for you to add urls for the packages you want, just look up the package you want and add the url to JS/CSS settings on CodePen:

1 Like