Issue with opening offcanvas in browser

Hello.

I’m getting this error when clicking the button that should show the offcanvas in the browser. (It works as it should inside BSS)

Uncaught TypeError: Cannot read properties of undefined (reading 'backdrop')
    at Qn._initializeBackDrop (bootstrap.min.js:6:57093)
    at new Qn (bootstrap.min.js:6:55775)
    at Qn.getOrCreateInstance (bootstrap.min.js:6:7897)
    at HTMLButtonElement.<anonymous> (bootstrap.min.js:6:58016)
    at HTMLDocument.n (bootstrap.min.js:6:4326)
_initializeBackDrop	@	bootstrap.min.js:6
Qn	@	bootstrap.min.js:6
getOrCreateInstance	@	bootstrap.min.js:6
(anonymous)	@	bootstrap.min.js:6
n	@	bootstrap.min.js:6

I don’t understand what is wrong.

Any help is appreciated.

Cheers!