I'm trying to create my first to-do app on the blockchain using solidity.

I'm following this tutorial Build Your First Blockchain Todo List

However, I'm getting this error when I get to this step (45:00) enter image description here

I'm running truffle: Truffle v5.0.2 and have web3 installed enter image description here

My metamask is also connected to my local gaunache blockchain enter image description here

I would paste my code here but this error is being thrown from the truffle-contract.js (not my app.js)

Let me know what other information is needed and I will happily provide it. I'm new to blockchain development but haven't found any online help regarding this specific issue.

1 Answer 1


In the comments under the video there is a guy talking about known issues. I was doing the same tutorial when I fist started and had similar problems: index.html did not work initially for me as Web3 was undefined. To fix this you need to npm install web3 version 0.20.7 and then include it in the index.html file before the truffle-contract.js line i.e. add the following line:

  • Awesome. This was driving me crazy and I appreciate it. Feb 27, 2022 at 3:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.