triplesec.js:6497 Uncaught TypeError: b.readUInt32BE is not a function
at Function.WordArray.from_buffer (triplesec.js:6497)
at triplesec.js:2393
at Deferrals._call (triplesec.js:7827)
at triplesec.js:7837
at trampoline (triplesec.js:7804)
at Deferrals._fulfill (triplesec.js:7835)
at ret (triplesec.js:7767)
at triplesec.js:2266
at _while (triplesec.js:2236)
at triplesec.js:2229
at run (setImmediate.js:48)
at runIfPresent (setImmediate.js:83)
at onGlobalMessage (setImmediate.js:125)
I've tried both of these:
import { Encryptor, Decryptor } from "triplesec/browser/triplesec";
and
import { Encryptor, Decryptor } from "triplesec";
In both cases, I get the same error (albeit at different file positions).
Perhaps I'm loading triplesec in the wrong way for the browser?
In my create-react-app project I'm seeing the following error:
I've tried both of these:
and
In both cases, I get the same error (albeit at different file positions).
Perhaps I'm loading triplesec in the wrong way for the browser?