pavelksg
WWasp-lang
•Created by pavelksg on 9/27/2024 in #đŸ™‹questions
Cannot import external module @covalenthq/client-sdk
here is an example repository that seem to be including this modules and should be working fine: https://github.com/covalenthq/goldrush-kit/blob/main/package.json
19 replies
WWasp-lang
•Created by pavelksg on 9/27/2024 in #đŸ™‹questions
Cannot import external module @covalenthq/client-sdk
However I am able to break it by changing to
"module": "esnext",
in tsconfig.json
19 replies
WWasp-lang
•Created by pavelksg on 9/27/2024 in #đŸ™‹questions
Cannot import external module @covalenthq/client-sdk
I just confirmed it works in a clean, pure TypeScript with
target: "esnext"
in tsconfig.json
.
index.ts
:
package.json:
19 replies
WWasp-lang
•Created by pavelksg on 9/27/2024 in #đŸ™‹questions
Cannot import external module @covalenthq/client-sdk
Thanks for looking into it! I’m using 18.18. Also tried the weirdest suggestions from GPT-4o on what I can change in all configs including Vite, but nothing helped
19 replies
WWasp-lang
•Created by pavelksg on 9/27/2024 in #đŸ™‹questions
Cannot import external module @covalenthq/client-sdk
Here is what I see in
node_modules/@covalenthq/client-sdk/dist/esm/index.js
and then this at the bottom:
export { ChainID, ChainName, GoldRushClient, bigIntParser, calculatePrettyBalance, isValidApiKey, prettifyCurrency };
19 replies