chobynleo / pancakeswap-frontend-hardhat-testnet

Pancakeswap Front-end Configuration on Testnet
MIT License
45 stars 46 forks source link

Unhandled Rejection (Error) #7

Open crypt0inf0 opened 2 years ago

crypt0inf0 commented 2 years ago

Hi, While sh start.sh localhost were unable to detect as baseurl.

Unhandled Rejection (Error): could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.4.1)
Logger.makeError
/workspace/pancakeswap-frontend-hardhat-testnet/src.ts/index.ts:213
Logger.throwError
/workspace/pancakeswap-frontend-hardhat-testnet/src.ts/index.ts:225
StaticJsonRpcProvider.<anonymous>
/workspace/pancakeswap-frontend-hardhat-testnet/src.ts/json-rpc-provider.ts:396
  393 | this.emit("debug", {
  394 |     action: "response",
  395 |     error: error,
> 396 |     request: request,
      | ^  397 |     provider: this
  398 | });
  399 | throw error;
chobynleo commented 2 years ago

Have you turned on the Hardhat network?

crypt0inf0 commented 2 years ago

Yes, Hardhat network is running using sh serve.sh & Still I'm facing this issue.

chobynleo commented 2 years ago

Yes, Hardhat network is running using sh serve.sh & Still I'm facing this issue.

Do you run sh start.sh under node version 12?

chobynleo commented 2 years ago

Please make sure you run sh start.sh under the node version 12 after successfully deploying all the contract(sh deploy.sh) and let me know the result, thanks.