Closed cognivore closed 2 years ago
I fixed it. I had a wrong import: * as sodium0
instead of just sodium0
.
Please see the following patch for details:
https://github.com/doma-engineering/do-auth/commit/5ccebd118c512fb47fdd0b4c58a31cf1f29b2025
Why?
It would be nice to be able to use libsodium both:
ts-jest
/ts-node
webpack
.What's wrong?
I don't quite know, but both in
jest
and ints-node
, sodium doesn't get loaded. Observe:tsconfig.json
crypto.ts
ts-node
jest
How?
I have no idea what to do about it or how to even debug this. If someone would point me to it, I could try to debug myself.