Replies: 1 comment
-
import { initWasm } from '@trustwallet/wallet-core'
const twc = await initWasm();
const { CoinType } = twc; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I've been trying to use the npm library in angular and I can't seem to be able to properly import anything from the library, are perhaps the types declarations messed up?
Trying for example to import CoinType like this:
import { CoinType } from '@trustwallet/wallet-core'
Gives me an error saying that there is no exported CoinType in wallet-core, trying to import it from the deep path @trustwallet/wallet-core/dist/src/wallet-core will not give me any errors in the IDE but it will fail during a serve or build with the error: module @trustwallet/... not found.
Beta Was this translation helpful? Give feedback.
All reactions