How to install popper.js with Bootstrap 4?

后端 未结 11 769
眼角桃花
眼角桃花 2020-12-07 17:17

From what I\'ve read so far, popper.js is a big pain with Bootstrap 4. I can\'t get it to work. I keep getting this error:

Error: Bootstrap dropdown r

11条回答
  •  时光说笑
    2020-12-07 18:10

    Instead of remotely putting popper js from CDN you can directly install it in your angular project.

    Try this.

    npm install popper.js --save 
    

    This query installs an updated version of popper.js Don't mention any version there, it will work for you.

提交回复
热议问题