Hello,
I’m trying to access to localhost:3000
using Truffle React box. When I execute npm run start
I get this error:
Unhandled Rejection (Error): This contract object doesn’t have address set yet, please set an address first.
The page shows a problem about the contract address. But the contract address has its address when it has been deployed to kovan network (I can see it everytime I execute migrate --network kovan
). Am I missing something? I followed these steps: https://www.trufflesuite.com/boxes/react
My enviroment:
Operating System: Linux Mint 20.1 Cinnamon
Ethereum client: Infura (with Metamask wallet)
Truffle v5.4.2 (core: 5.4.2)
Solidity - 0.6.6 (solc-js)
Node v14.17.3
Web3.js v1.4.0
Solutions that I’ve already tried:
- These two answers here: https://stackoverflow.com/questions/48609913/unhandled-rejection-error-this-contract-object-doesnt-have-address-set-yet-pl
- The three solutions proposed in the first answer here: https://ethereum.stackexchange.com/questions/86738/error-unhandled-rejection-error-this-contract-object-doesnt-have-address-se
Please, this error is driving me crazy