question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ethers resolving to version 5.5.1 only

See original GitHub issue

Hi, when I upgrade to the latest version of siwe - 1.1.6, I get the following errors when trying to npm install:

$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: <redacted>
npm ERR! Found: ethers@5.6.2
npm ERR! node_modules/ethers
npm ERR!   ethers@"^5.5.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer ethers@"5.5.1" from siwe@1.1.6
npm ERR! node_modules/siwe
npm ERR!   siwe@"1.1.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/safisaleem/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/safisaleem/.npm/_logs/2022-04-07T06_40_14_031Z-debug.log

any suggestions?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
joewagnercommented, May 17, 2022
"ethers": "^5.5.1"

I hope that works for you, then we can close this issue.

If I do npm install siwe@beta the issue is fixed for me, Thanks!

2reactions
w4ll3commented, Apr 7, 2022

We moved ethers to a peer dependency but it should not be fixed at 5.5.1 (this should just be the floor). As a workaround you could use this version in your project (if possible). Will work on a release asap.

On Thu, Apr 7, 2022, 3:47 AM safisaleem @.***> wrote:

Hi, when I upgrade to the latest version of siwe - 1.1.6, I get the following errors when trying to npm install:

$ npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: <redacted> npm ERR! Found: @.*** npm ERR! node_modules/ethers npm ERR! ethers@“^5.5.4” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer ethers@“5.5.1” from @.*** npm ERR! node_modules/siwe npm ERR! siwe@“1.1.6” from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /Users/safisaleem/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/safisaleem/.npm/_logs/2022-04-07T06_40_14_031Z-debug.log

any suggestions?

— Reply to this email directly, view it on GitHub https://github.com/spruceid/siwe/issues/68, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBSTQGZVNAIU4ZKXA3YBRDVD2AGBANCNFSM5SYJZDHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] ethers dependency · Issue #762 · rainbow-me/rainbowkit
When trying to install dependencies having a newer version of ethers, I get this error, unless I use --force. I'm currently using ethers...
Read more >
Invalid address or ENS name - ethereum - Stack Overflow
The error means the address you are passing is not in the right format hence presenting as an INVALID_ARGUMENT. It needs to be...
Read more >
Ethers.js - Error when calling the mint function with eth value
I'm starting on Smart Contract and ERC721 Collectible NFT and I'm using Ethers as Provider and Metamask to ...
Read more >
Siwe and ethers not working with npm : r/ethdev - Reddit
Both siwe and ethers version are conflicting, siwe needs ethers@5.5.1. You can try removing ethers from your package.json or check if latest ...
Read more >
ethers - UNPKG
The CDN for ethers. ... 19, import { version } from 'ethers/_version'; ... 725, * A Promise<Network> that resolves only once the provider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found