trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.32k forks source link

Web3 error when trying to compile code using truffle #986

Closed sai4788 closed 6 years ago

sai4788 commented 6 years ago

Using web3 detected from external source. If you find that your accounts don't appear or you have 0 MetaCoin, ensure you've configured that source properly. If using MetaMask, see the following link. Feel free to delete this warning. :) http://truffleframework.com/tutorials/truffle-and-metamask (anonymous) @ app.js:28251

What the issue is, in broad strokes.

Trying to create sample hello world application Installed metamask node js truffle,ethereum js when trying to integrate the app with metamask and the money in metamask should be displayed on the ui but I am getting the error mentioned above.

Please provide the shortest amount of steps to reproduce your issue.

Expected Behavior

What you expected to happen.

Actual Results -- The amount in metamask should be displayed in UI.

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

Environment

cgewecke commented 6 years ago

@sai4788 In the top left hand corner of metamask there is a network tab. Make sure it's connected to the correct local test network / ganache client.

For more please check out the ganache docs here and if you run into further problems getting these two components to work together, the ganache repository is located here.