[BUG] Slow Installation and Dependency Conflict with near-api-js
and @near-wallet-selector/core
#2382
Open
2 of 6 tasks
Labels
bug
Something isn't working
Description
Issue Summary:
Slow Installation:
Initially attempted to install all required packages (
near-api-js
,@near-wallet-selector/core
,@near-wallet-selector/my-near-wallet
,@near-wallet-selector/ledger
,@near-wallet-selector/modal-ui
) together:Error When Installing Individually:
Decided to install the packages one by one to diagnose the issue. Encountered a dependency conflict when installing
@near-wallet-selector/core
:The error indicates a conflict between
near-api-js@5.0.1
and the peer dependency required by@near-wallet-selector/core
(near-api-js@4.0.3
).Steps to Reproduce:
Create a new Next.js application:
npx create-next-app@latest my-app cd my-app
Attempt to install all packages together:
Try installing the packages one by one:
@near-wallet-selector/core
:Error Log:
Environment:
near-api-js@5.0.1
@near-wallet-selector/core@8.9.15
Page URL
https://docs.near.org/build/web3-apps/integrate-contracts
Impact
Suggested Fix
Suggestions:
Update Documentation:
Specify compatible versions of
near-api-js
and@near-wallet-selector/core
. Example:Provide guidance for resolving dependency issues using
--legacy-peer-deps
or--force
.Improve Package Compatibility:
@near-wallet-selector/core
to support the latest version ofnear-api-js
(5.0.1
).The text was updated successfully, but these errors were encountered: