coinbase / coinbase/onchainkit

Bug: @coinbase/onchainkit throws error when building

Open
#2,531 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
520
Avg merge
32m
Merged PRs (30d)
2

Description

### Describe the bug and the steps to reproduce it

1. Run yarn build or npm run build
2. The bug is originating from the @scure/bip32 pkg.
3. The pkg removed 'abytes' from the exports
4. Current version of viem still exports it
5. The build error is as follows: ./node_modules/@scure/bip32/lib/esm/index.jsAttempted import error: 'abytes' is not exported from '@noble/hashes/utils' (imported as 'abytes').Import trace for requested module:
./node_modules/@scure/bip32/lib/esm/index.js
./node_modules/viem/_esm/accounts/index.js
./node_modules/porto/dist/viem/Account.js
./node_modules/porto/dist/index.js
./node_modules/@wagmi/connectors/dist/esm/porto.js
./node_modules/@wagmi/connectors/dist/esm/exports/index.js
./node_modules/wagmi/dist/esm/exports/connectors.js
./node_modules/@coinbase/onchainkit/dist/DefaultOnchainKitProviders.js
./node_modules/@coinbase/onchainkit/dist/OnchainKitProvider.js
__barrel_optimize__?names=OnchainKitProvider!=!./node_modules/@coinbase/onchainkit/dist/index.js

### What's the expected behavior?

A successful build after running the 'yarn build' command

### What version of the libraries are you using?

- @coinbase/onchainkit: "1.1.1"
- viem: "2.38.4"
- wagmi: "2.19.0"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.