I have been following the MetaMask basic dapp tutorial.
Everything was going smoothly until I came across the MetaMaskOnboarding section which triggers when the browser detects that Metamask is not installed.
const onboarding = new MetaMaskOnboarding({ forwarderOrigin });
After adding this code, everything abruptly stopped working. I am pretty sure I have correctly installed the onboarding dependency. Being new to this, I suspect there is a simple mistake, but despite spending days analyzing it, I haven't been able to fix it.
I decided to comment out this line and continue with the tutorial without any issues. However, this means that visitors without MetaMask installed would not be automatically redirected to the installation page.