paulmillr / noble-hashes

Audited & minimal JS implementation of hash functions, MACs and KDFs.
https://paulmillr.com/noble
MIT License
545 stars 46 forks source link

TextEncoder is not defined #45

Closed ameft closed 1 year ago

ameft commented 1 year ago

I'm trying to use a library which depends on @paralleldrive/cuid2 which on itself depends on @noble/hashes. When I try to launch my Nuxt.js app on Node 16.19.1 with the new imported library I get this error: image I'm using the latest version for each library, but I've also tried to install version 1.1.5 for @noble/hashes (the earlies the dependency graph allows) but I still get the same error. Any idea?

ameft commented 1 year ago

Apparently the issue is related to that library not supporting the SSR of my Nuxt.js app and making some mess. Still not solved but the issue doesn't lie here, sorry.