Uncaught TypeError: Cannot convert object to primitive value(zone-evergreen.js:171)

前端 未结 4 2031
无人共我
无人共我 2020-12-29 19:07

In Angular 9 (using Bootstrap 4 and Jquery 3.5.1). when clicking on bootstrap collapse button, I am getting an error on my browser console instead

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 19:40

    They have a fix for that now (see https://github.com/jquery/jquery/commit/65e909844c2d064606217b47e92eff12ebdb79de) if you are up to building your own jquery using node/npm then just download the commit on the link above and build it.

    What I did was to edit my jquery.min.js (3.5.0)

    Steps I did:

    1. search for the line: return t||(t=Object.create(null) it's in Line 2,Column 32856
    2. replace Object.create(null) with {}

    and that's it so far so good

提交回复
热议问题