Can't connect to Metamask with clean install of Redwood

Hey all,

I’ve been working on an ethereum project for the last couple of months, and now out of the blue I’m having issues connecting to metamask.

I created a clean install of Redwood and put in minimal code using the package ‘ethers’ to summon metamask -

const HomePage = () => {
const provider = new ethers.providers.Web3Provider(window.ethereum, "any");
const foo = async () => {
  await provider.send("eth_requestAccounts", []);

And this issue popped up in the console.
Uncaught TypeError: Cannot assign to read only property ‘ethereum’ of object ‘#’

I’ve used the same code with a clean install of create-react-app and everything works. And my deployed version on netlify still works.

I would really appreciate any help, even just a point in the right direction. I’ve run out of things to investigate.

Yeah looks like it was my fault. I uploaded a clean install of Redwood to netlify and it worked fine, but it did not work in dev. I’ve done something funky on my end.