Closed Manbearpixel closed 5 years ago
There are tests in Node to ensure it works: https://travis-ci.com/kevlened/isomorphic-webcrypto/builds/86928885
It looks like you may be running your code through a transpiler. Are you using Typescript?
msrcrypto
is only loaded for react-native
. I'd check if your transpiler is configured for react-native
. A configuration for react-native
would look for *.ios.js
and *.android.js
files.
Closing for now. Feel free to reply if this is still an issue.
Great project, I noticed in the specs that Node 4+ should be supported. My code appears as follows:
When ran however, the following error appears:
So it appears one of the dependencies your project uses still relies on the
window
object which would not be available in Node. Do you have some examples of this working with Node?Thanks