[Bug]: app.js:158 Uncaught (in promise) TypeError: window.contract.methods.getInfo is not a function
Version
- [X] Yes
General Question
- [X] No
What happened?
A bug happened!
After deployed the build , it keeps loading and has this error.

What have you tried?
I Googled and asked the community in the discord server but could not find a solution.
Relevant log output
No response
Protect your information
- [X] I Agree
I'm having the same issue here too.
same here.
Same issue.
Hello, same here.
YOU CAN GET IT FIXED BY UPDATING THE API FILE, JUST COPY IT FROM THE BACKEND AND THEN PAST IT INTO THE FRONTEND API FILE.
YOU CAN GET IT FIXED BY UPDATING THE API FILE, JUST COPY IT FROM THE BACKEND AND THEN PAST IT INTO THE FRONTEND API FILE.
What 'api' file?
Follow these instructions for the frontend:
- Update the frontend/js/abi.js file with the ABI from backend/build/contract/_contract_abi.json.
- Update your information in the frontend/js/constants.js file.
- Deploy your dApp to Netlify. (Reference the video for full instructions.)