-
Hey! Just starting out on Metamask Snaps, following the tutorial. Stopped at the "Connect" step. Basically, I get the error: Failed to fetch Snap "local:http://localhost:8080": Failed to fetch. Every time I click the "Connect" button. My snap.manifest.json and package.json are located in the server root directory. So I don't think the problem lies there. Any ideas on what I could do? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Try using node 18 |
Beta Was this translation helpful? Give feedback.
-
Hi, have you tried using the template snap monorepo? https://github.com/MetaMask/template-snap-monorepo Try cloning that locally, then do |
Beta Was this translation helpful? Give feedback.
-
So apparently the problem was I was initiating the snap in the wrong port. Now I get a different error: Any thoughts? |
Beta Was this translation helpful? Give feedback.
Are you sure that both the dapp and the snap are running? If you run
yarn install && yarn start
in the template snap monorepo main directory, it will run both packages. The [site] will be running at :8000 and the [snap] will be running at :8080. That is necessary for one to connect to the other.