dappuniversity/eth-todo-list

Issue with truffle-contract

Closed this issue · 1 comments

Getting this Uncaught (in promise) TypeError: Cannot read property 'apply' of undefined error at line App.todoList = await App.contracts.TodoList.deployed().
I then tried upgrading the truffle-contract version but there's a new kind of error in the updated version as Invalid JSON RPC response. Can you help me fix this?

Oops! My mistake... I was setting up the wrong provider at .setProvider().
Sorry! Closing the issue!