Closed radicleart closed 1 year ago
You are probably using common.js modules. We don't support these. You need to switch to ESM. Also there is no default export, you need to use star:
import * as btc from '@scure/btc-signer';
Removed al references to CommonjJS as suggested and the import worked.
Thanks!
Hey, I'm struggling to import the library into my node js application. I've tried both micro-btc-signer and the new @scure/btc-signer packages.
node -v v19.8.0
E.g. for @scure library
or trying dynamic imports;
gives persistent error;
I imagine it's something misconfigured my end but I've have been bashing my head against it for several hours, so raising in case its a known issue?