-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isEIP55Address cannot be called because @spruceid/siwe-parser might be below 2.0.0 version #176
Comments
Are you using |
I used npm in that case, but I think the logic would be the same for other package managers. E.g. you installed [email protected] long time ago, it won't upgrade because there's not requirement for a higher version |
I am currently encountering the same problem. To address it, I had to specifically update the parser package using the command Furthermore, there is an option to specify the depth of packages to update using the command Within the "siwe": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/siwe/-/siwe-2.1.4.tgz",
"integrity": "....",
"requires": {
"@spruceid/siwe-parser": "*",
"@stablelib/random": "^1.0.1",
"uri-js": "^4.4.1",
"valid-url": "^1.0.9"
}
}, Additionally, there's another instance where the same nested dependencies mentioned above are specified:
The second occurrence reflects the version that was updated following the execution of |
I faced that issue when I saw that error:
I started to look into that and noticed that function
isEIP55Address
was introduced in@spruceid/siwe-parser
version 2.0.0.And right now there's no dependency rule for that in siwe package.json:
siwe/packages/siwe/package.json
Line 26 in e3ca3ce
I believe that it must be set to
^2.0.0
A quick fix
If you're facing the same problem in your project, just install
@spruceid/siwe-parser@^2.0.0
. This will forcesiwe
to use a newer version and the problem will be solvedThe text was updated successfully, but these errors were encountered: