crypto-browserify icon indicating copy to clipboard operation
crypto-browserify copied to clipboard

when using pbkdf2Sync with rollup getting createhmac is not a function

Open last-Programmer opened this issue 2 years ago • 0 comments

We re using pbkdf2sync in our application and we use rollup with esm bundling.

When we run our application we get error

Uncaught (in promise) TypeError: createHmac$1 is not a function at pbkdf2 (sync.js:37:13) at Encryption.getHash (Encryption.ts:16:13) at Controller.ts:173:32

Thanks in advance for the help.

last-Programmer avatar May 16 '23 16:05 last-Programmer