I encountered an error while using bootstrapDialog. Specifically, when I tried to initialize the dialog with BootstrapDialog.alert('I want banana!');
Is there anyone who can assist me in resolving this issue?
The browser displayed the following error message:
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)
Here are the versions of bootstrap and bootstrap3-dialog being used:
bootstrap-4.1.3/js/bootstrap.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.js"></script>