dappuniversity / eth-todo-list

Blockchain Todo App Tutorial Powered by Ethereum Smart Contracts
562 stars 550 forks source link

Web3 is not defined - SOLVED #36

Open RapidCompiler opened 2 years ago

RapidCompiler commented 2 years ago

Fixed #11. I referenced the web3.min.js file in index.html. 'web3.js' is no longer present inside the dist folder of the web3 package in /node_modules. This seemed to resolve this issue.

The installation of the web3 npm package was also required. I've added this as a dependency in package.json.

The account to use by web3 now has to be specified inside the load function of app.js.