dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
566 stars 507 forks source link

Uncaught promise in "app.js" & no table visible on browser. #50

Open Husain0007 opened 3 years ago

Husain0007 commented 3 years ago

Hello, I have run the lite-server and connected metamask with the account in ganache and yet I am unable to see the table that should appear as per the Tutorial @1:11:14. I am also getting a promise error which I don't know how to resolve. Help will be highly appreciated. Setup Truffle = v.5.3.6 web3 = v.1.3.6 node = v.12.16.1

Screenshot 2021-05-15 at 11 45 48 PM Screenshot 2021-05-15 at 11 46 24 PM
KukretiShubham commented 3 years ago

How you did this ? I am getting this error : TypeError: Indexed expression has to be a type, mapping or array (is uint256) candidatesCount[candidatesCount] = Candidate(candidatesCount,_name,0);

shikshanayak commented 2 years ago

hey did you get an answer ?? because I'm getting the same error and couldn't solve it.

Kaditcuy commented 2 years ago

Same here has anyone gotten an answer ,i'm still stuck the webpage is still loading and even after successful connection the table is still not displayed.

Yangying13045 commented 1 year ago

在您的HTML代码中,改为 <div id="content" style="display: none;"><div id="content">