How to use Popper.js with Bootstrap 4 beta
问题 I'm old school, so I downloaded the source code to 1.12.0 and then did the following: <script src="/popper.js-1.12.0/dist/popper.js"></script> <script src="/bootstrap-4.0.0-beta/dist/js/bootstrap.js"></script> But I'm getting: Uncaught SyntaxError: Unexpected token export on line 2294 where it says: export default Popper; 回答1: You want to use the dist target specified in the package.json file as main entry. In this case, you are looking for the umd build (dist/umd/popper.js) What's UMD? The