Truffle React Box - "window.ethereum" Undefined #6001
lloy0076
started this conversation in
Truffle Boxes
Replies: 2 comments
-
Reading a bit further, MetaMask itself says you can detect the MetaMask by doing this:
(see https://docs.metamask.io/wallet/get-started/detect-metamask) And you could query I am not new to programming but am new to working with blockchains, solidity and so forth; so I deduce that one might be able to have any type of provider but it is an error to have no provider. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @lloy0076 our engineering team will look into this. Thanks for passing the above feedback with us. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I raised this issue:
In short, I unboxed the React box, started ganache, ran the migration (and the tests succeed too).
Then when I run the client (
npm run start
) and visit the URL in a browser, there is an error in any browser without a MetaMask extension installed; but once I install it, the React app runs as expected.It is possible one does need some sort of Wallet extension (which I think is what MetaMask is) for the code to work, but unfortunately it just "white screens" and there's no obvious documentation saying that such a thing is required.
There's more details in the ticket.
Is this just me?
Beta Was this translation helpful? Give feedback.
All reactions