I am getting the following error with bootstrapDialog. I am just initializing the bootStrapDialog i.e. BootstrapDialog.alert('I want banana!');
Can anyone help me on how to resolve?
Browser throws the error as follows:
Uncaught TypeError: element.querySelector is not a function
at n.Modal (modal.js:80)
at new n (bootstrap-dialog.min.js:1)
at o.realize (bootstrap-dialog.min.js:1)
at open (bootstrap-dialog.min.js:1)
at Function.o.alert (bootstrap-dialog.min.js:1)
bootstrap:
bootstrap-4.1.3/js/bootstrap.js
bootstrap3-dialog:
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.js"></script>