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

前端 未结 4 1922
隐瞒了意图╮
隐瞒了意图╮ 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 20:58

    I get same error with bootstrap 4.1.3, and I am sure script order is correct, jquery is placed before bootstrap.

    Because I load these scripts in tampermonkey scripts( a browser add-on to manage third party scripts which can modify current web page ) by the @require attribute, it's hard to inject codes between jquery loading and bootstrap loading.

    Changing to a previous version 3.3.7 of bootstrap solves the error. Waiting for next version of bootstrap would solve this.

提交回复
热议问题