0👍
The issue is that you are trying to use the library from the browser when it was designed to be used from a server-side Node.js application. This is explained in more detailed in this Github thread.
I would recommend you to dive a bit in this thread, but TL;DR is don’t use this library from the browser as that is not yet supported.
Hope you find this useful.
Source:stackexchange.com