**web3.version.getNetwork()** the result is
**undefined**. Does anyone know why this is happening and how I can fix it?
UPDATE: I tried the same test with web3.eth.getAccounts() and that too is coming back undefined. I'm guessing I'll get the same result with any of the Web3 methods/properties I try.
// Make sure the Web3.js object has been defined. web3_helpers.web3AndMetamaskCheck(); if (typeof gameDetailsObj == 'undefined' || gameDetailsObj == null) throw new Error(errPrefix + 'The game details object is unassigned.'); if (typeof currentUserObj == 'undefined' || currentUserObj == null) throw new Error(errPrefix + 'The current user object is unassigned.'); // >>>>> getNetworkCall is ALWAYS 'undefined'. var getNetworkCall = web3.version.getNetwork();