Can't connect to etherscan

Hi I’m trying to connect to an etherscan contract using metamask but I’m not being successful.

When I click on metamask nothing happens and this error shows up in the console:

index.html?m=dark&v= Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘getId’)
at connectWeb3 (index.html?m=dark&v=
at HTMLButtonElement.onclick (VM1339 0xBd2fC50d561322b49C31b3C6d66aaE953a1E2120:1249)
connectWeb3 @ index.html?m=dark&v=
onclick @ VM1339 0xBd2fC50d561322b49C31b3C6d66aaE953a1E2120:1249

(sorry I can’t upload images)