You're getting this error because Bootstrap has a dependency on jQuery, which is where it's defining the
collapse()
method. This is included in the
Bootstrap documentation[
^]. If you want to call
collapse()
then you might want to use the selector instead:
$(.someClass').collapse('show');