Bootstrap: Uncaught TypeError: Cannot read property 'fn' of undefined

前端 未结 4 1923
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 20:21

I am trying to make an Electron application with Bootstrap. I get this error message:

Uncaught TypeError: Cannot read property \'fn\' of undefined
at setTransit         


        
4条回答
  •  感情败类
    2021-02-05 21:05

    In my case, I had the ordering of the imports of scripts wrong. The bootstrap import should come after the popper and jquery imports.

    Since Bootstrap v4.+ depends on popper.js and jquery

    "scripts": [
              "./node_modules/jquery/dist/jquery.slim.min.js",
              "./node_modules/popper.js/dist/umd/popper.min.js",
              "./node_modules/bootstrap/dist/js/bootstrap.min.js"
            ]
    

提交回复
热议问题