hedera-reactjs-boilerplate
hedera-reactjs-boilerplate copied to clipboard
'hash-sdk' does not contain a default export
Attempted import error: 'hash-sdk' does not contain a default export (imported as 'hash').
https://replit.com/@PabloPeillard1/hedera-reactjs-boilerplate

Still facing this issue .Any Solution??
I'm also facing the same issue, anyone find the solution?
I went in and tried removing the hash implementation and just making direct hash-sdk function calls, and even after these errors there are errors regarding caseSensitive file names, 10,000+ files worth. looks like they didn't set a default export on hashgraph js sdk.
@jDeppen @salik786 @Talha089 @Slitherings @publu import "hash" as a globle variable, because "hash" is not default exported in the child file of node_modules>hash-sdk>build>index.d.ts
=>use this
import * as hash from "hash-sdk";
I understand all the code in detail . The problem in this code is only one In hedera.ts file when you import the hask from hash-sdk it should import all with reference. Bingo you achieved.
Just write
Import * as hash from "hash-sdk";
This help you . Give feedback i will wait.