Closed t3db0t closed 1 year ago
Hmm, this is strange. What does npm ls hex-to-array-buffer
gives you?
I solved the problem, but I don't understand why. I changed const hexToArrayBuffer = require('hex-to-array-buffer')
to import hexToArrayBuffer from 'hex-to-array-buffer';
and it works now...
(In 'hexToArrayBuffer(arg.toHex())', 'hexToArrayBuffer' is an instance of Object)
I'm getting this error while trying to use the library in a React Native project. I started building the project on a new computer and now I'm getting this error from line 25 in
sha256.js
. Any idea what could be causing this?