Is bootbox 6.0.0 really compatible with Bootstrap 5 series?
yo-nishizawa opened this issue · comments
I have tried using bootbox 6.0.0 against bootstrap 5.2.1.
However, I get the following error
"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library.
Are you sure you support bootstrap5 series?
Do you have a solution?
Sorry, self resolved.
@yo-nishizawa how you solved this issue?
@umairali You'll see this error if you don't have jQuery loaded. While Bootstrap 5 doesn't require it, we do.
I am loading like below but not working
import $ from 'jquery';
window.$ = window.jQuery = $;
import * as bootstrap from 'bootstrap';
window.bootstrap = bootstrap;
import bootbox from 'bootbox';
window.bootbox = bootbox;
Sorry, not really all that familiar with modules. Bootbox.js has a UMD wrapper, which probably isn't compatible with what you're trying to do.
@yo-nishizawa how you solved this issue?