Hamburger Event Type error

When I click on the Hamburger menu I receive this error:
Uncaught TypeError: Failed to execute ‘dispatchEvent’ on ‘EventTarget’: parameter 1 is not of type ‘Event’.
Url: /FinalProjectCindy/toolbox/bs5/dist/js/bootstrap.bundle.min.js

We have all bs5 or common type controls but we have imported a form that uses an API and external css and js that has been saved to css and js folders respectively.

How can I reproduce this?