Angular build breaks for browser when trying to use the dgraph http client due to reliance on jsonwebtokens that in turn require Buffer in browser

Hi!

I stumbled upon the same problem. But this can be conveniently be monkey patched.

Making web3/bitcore-lib work with Angular 6-11 and >=11 (github.com)

Just tried it with a fresh Angular 11 app and could retrieve the Data from Dgraph backend no problem. Before the monkey patch the error you named gave me trouble as well.

1 Like