Experiencing some difficulties while utilizing the window.ethereum
in the latest version of NextJs. Everything was functioning smoothly with NextJs 12, but after upgrading to NextJs 13, this error started popping up. Are there any alternative solutions available for this issue?
https://i.sstatic.net/AdWfd.png
Code Snippet:
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
console.log(signer);