The blocks are not appearing in list.

Could this be due to Metamask recent changes regarding privacy mode? I have followed the code correctly but I only get the table headers, no data displayed.


  1. 2
    Marwan Galal
    Same here, and wondering the same.

    @Vince, check the console, do you also get:

    inpage.js:1 ATTENTION: In an effort to improve user privacy, MetaMask stopped exposing user accounts to dapps if “privacy mode” is enabled on November 2nd, 2018. Dapps should now call provider.enable() in order to view and use accounts. Please see https://bit.ly/2QQHXvF for complete information and up-to-date example code.
    (anonymous) @ inpage.js:1

    web3.min.js:7 Uncaught SyntaxError: Unexpected token <
    inpage.js:1 Uncaught (in promise) TypeError: e is not a function
        at inpage.js:1
        at a.sendAsync (inpage.js:1)
        at n.e [as getBlockNumber] (inpage.js:1)
        at updateBlocks ((index):30)
        at window.onload ((index):25)

  2. 2
    @Marwan yes, I get the same message. That’s why I suspect it could be a Metamask related issue, but so far I haven’t been able to get anything other than the headers.