I'm running testrpc on the default port 7545.
I run truffle console and test with: web3.eth.getAccounts().then( function (result) { return result[0] });
This works fine. According to docs the getAccounts() method only works if the account is connected properly with ganache, so it seems I should be all set.
when I enable MetaMask in crome and setup to required accounts, localhost web page is showing loading evin i had properly setup MetaMask as shown in image.
But when I dissabled the MetaMask, It is showing proper output with account at index 0 as shown below:
truffle version
Truffle v5.1.26 (core: 5.1.26)
Solidity - 0.4.25 (solc-js)
Node v12.13.0
Web3.js v1.2.1
Please help me getting out of this.