LIT-Protocol / js-sdk

The Lit Protocol SDK provides developers with a framework for implementing Lit functionality into their own applications.
https://developer.litprotocol.com
MIT License
99 stars 59 forks source link

Unable to run lit-pkp-auth-demo app #634

Open gallirohik opened 2 weeks ago

gallirohik commented 2 weeks ago

Description of the issue

Originally posted here,

https://github.com/LIT-Protocol/lit-pkp-auth-demo/issues/16

Hi Team,

I'm encountering issues while trying to run the example project lit-pkp-auth-demo app. I've tested both the latest versions of the required libraries as well as the exact versions specified in the example. However, the problem persists in both cases.

Here are the versions I used:

"@lit-protocol/auth-helpers": "^6.3.0", "@lit-protocol/constants": "^6.3.0", "@lit-protocol/lit-auth-client": "^6.3.0", "@lit-protocol/lit-node-client": "^6.3.0", "@lit-protocol/types": "^6.3.0",

Could you please suggest any potential workarounds or solutions?

Thank you!

Screenshot 2024-09-13 at 2 16 21 PM Screenshot 2024-09-13 at 2 16 36 PM

Additional context

No response

joshLong145 commented 2 weeks ago

Hey @gallirohik if you run yarn add @simplewebauthn/browser in the lit-pkp-auth-demo it will install the dependency.

gallirohik commented 2 weeks ago

Hey @joshLong145 Thanks for your response. Yeah , I had explicitly installed the following packages along with @simplewebauthn/browser:

Correct me if I'm wrong, but ideally, these should be part of the peer dependencies, right?

By the way, I encountered an unhandled rejection error: Error: with Ether@5.7 when using it with next@14. I found a thread discussing this issue. Let us know if there's a workaround for it. I was able to run the setup despite the error, but I'm curious if it's something that needs fixing.

Screenshot 2024-09-13 at 10 49 51 PM