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

后端 未结 12 1955
春和景丽
春和景丽 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:22

    I had this issue with an MVC project and here is how I fixed it.

    1. Open BundleConfig.cs
    2. Find :

      bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));

      Change to:

      bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.bundle.min.js"));
      

    This will set the bundle file to load. It is already in the correct order. You just have to make sure that you are rendering this bundle in your view.

提交回复
热议问题