Javascript 错误未捕获类型错误:无法读取属性';0';未定义的。Ekko灯箱

Javascript 错误未捕获类型错误:无法读取属性';0';未定义的。Ekko灯箱,javascript,jquery,twitter-bootstrap-3,lightbox,Javascript,Jquery,Twitter Bootstrap 3,Lightbox,我正在用一些缩略图创建一个模型,当我点击它们时,我想在灯箱中打开它们, 但是当我点击拇指时,我得到了这个错误 Uncaught TypeError: Cannot read property '0' of undefined ekko-lightbox.js:97 ekko lightbox.js:97: this._isBootstrap3 = $.fn.modal.Constructor.VERSION[0] == 3; 我拇指的代码是:

我正在用一些缩略图创建一个模型,当我点击它们时,我想在灯箱中打开它们, 但是当我点击拇指时,我得到了这个错误

Uncaught TypeError: Cannot read property '0' of undefined                          ekko-lightbox.js:97
ekko lightbox.js:97:

this._isBootstrap3 = $.fn.modal.Constructor.VERSION[0] == 3;
我拇指的代码是:

<div class="col-xs-6 col-md-3">
<a href="https://cryptoid.com.br/wp-content/uploads/2019/07/novo-modelo-rg-verso-700x468.jpg" target="_blank" style="position: absolute;" title="baixar" class="btn btn-default btn-sm">
<i class="fas fa-arrow-down" aria-hidden="true"></i></a>
<a href="https://cryptoid.com.br/wp-content/uploads/2019/07/novo-modelo-rg-verso-700x468.jpg" class="thumbnail" data-toggle="lightbox">
<img src="https://cryptoid.com.br/wp-content/uploads/2019/07/novo-modelo-rg-verso-700x468.jpg" class="img-fluid" alt="documento anexado 1">
</a>
</div>
我的情态:


插件本身看起来像个bug。在它的源代码中,
$.fn.modal.Constructor.VERSION
没有定义,除了在Github上打开一个问题之外,您没有做太多的事情,我想请确保您在
ekko lightbox.js
之前加载了所有依赖项(jquery和bootstrap)。请显示如何加载它们。
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
     event.preventDefault(); 
     $(this).ekkoLightbox(); 
});