1, Feb 2023
Here are some common causes of this error:
- jQuery library is not included in the webpage
- jQuery library is included but it’s a wrong version
- jQuery library is included but there is a typo in the path
You can also check to make sure that the jQuery library is included only once, and that the path to the library is correct. Also, check that you are using the correct version of jQuery. Bootstrap specifies a range of compatible jQuery versions, and you should use a version that falls within that range.
It is also recommended to check the browser’s developer tools to see if there are any console errors related to jQuery or Bootstrap, as that could help you to debug the problem.