I had that once, I believe the issue was somehow related to window.crypto (https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto) and the crypto library included in node. I wanted to use the window.crypto, but somehow I got the nodeJS crypto Library, which either has a different signature or doesn't work in browsers. Check your files, if you're using crypto anywhere, or if it comes from a library, make sure your dependencies are correct (as start as little as possible, check with some tutorials).