[260] Dependency Conflict with near-api-js and Wallet Selector
Title: Dependency Conflict with near-api-js and Wallet Selector Description: I am having a problem installing Wallet Selector package with near-api-js Note that the near-api-js package version is "near-api-js": "^5.0.0"
this error :
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/near-api-js npm error near-api-js@"^5.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer near-api-js@"4.0.3" from @near-wallet-selector/[email protected] npm error node_modules/@near-wallet-selector/core npm error @near-wallet-selector/core@"*" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.
Summary: The customer is experiencing a dependency conflict error when trying to install the Wallet Selector package with near-api-js version 5.0.0. The error is due to a peer dependency requirement of near-api-js version 4.0.3 by @near-wallet-selector/core. Suggest advising the customer to resolve the dependency conflict by either adjusting package versions or using npm commands like --force or --legacy-peer-deps as a temporary workaround.
Info
Reported by: Guest ([email protected]) - Open in Gleap Location: NL Type: 🚨 BUG
🔗 Open share link 🌍 Open ticket in Gleap
Metadata
browserName: Chrome(128.0.0.0) userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 browser: Chrome systemName: Windows sessionDuration: 1746 devicePixelRatio: 2.5 screenWidth: 1536 screenHeight: 864 innerWidth: 1536 innerHeight: 695 currentUrl: https://docs.near.org/tools/near-api-js/wallet language: ar-AE sdkVersion: 13.7.3 sdkType: javascript environment: prod

Internal note 📝: The customer is experiencing a dependency conflict error when trying to install the Wallet Selector package with near-api-js version 5.0.0. The error is due to a peer dependency requirement of near-api-js version 4.0.3 by @near-wallet-selector/core. Suggest advising the customer to resolve the dependency conflict by either adjusting package versions or using npm commands like --force or --legacy-peer-deps as a temporary workaround.
Please use 4.0.3 until the issue is solved in the near future