paulmillr/noble-hashes

v1.3.0 doesn't build in React Gatsby

culda opened this issue · 1 comments

culda commented

Description
I have a Gatsby/yarn v3 app and it doesn't build the latest bip32 and bip39 libraries.
The issue is with v1.3.0 of noble-hashes that they both depend on, more specifically with the ESM syntax import * as nc from 'node:crypto'.

image

Solution
The solution for me currently is

"resolutions": {
   "@noble/hashes": "1.2.0",
}

There is no issue with noble-crypto. The issue is with your bundler config. Adjust it properly or report to its repo.