bootstrap.min.js:6 Uncaught Error: Bootstrap dropdown require Popper.js

后端 未结 12 1966
春和景丽
春和景丽 2020-12-04 18:41

Suddenly I started to get error when I try to open my dropdown menu :

 bootstrap.min.js:6 Uncaught Error: Bootstrap dropdown require Popper.js (https://poppe         


        
12条回答
  •  一个人的身影
    2020-12-04 19:40

    You need to install popperjs along with bootstrap to get rid of this error.Note that if you are using "bootstrap": "^4.4.1", and @popperjs/core v2.x combinations,bootstrap may not support popperjs version. So downgrade your version.

    Option 1: npm install popper.js@^1.12.9 --save

    and Add following script between jquery and bootstrap scripts.

    "node_modules/popper.js/dist/umd/popper.min.js",

    Option 2: Add following script tag to index.html

提交回复
热议问题