Closed the-simian closed 6 days ago
Fairly certain this was broken yesterday: https://github.com/clerk/javascript/blame/a0cb062faa4d23bef7a577e5cc486f4c5efe6bfa/packages/types/src/web3.ts#L22
cc: @chanioxaris web3_coinbase_wallet_signature
is missing on one of the two types (clerk-expo does not have it). I've done a fresh install today, and I've followed the advice to downgrade to 2.2.5 while they fix the other issue.
Hi!
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.
If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.
Thanks for using Clerk!
I just started using Clerk about a month ago, but so far this library seems to be broken a lot, and tracking down issues is not fun. I went on the discord because I have been facing this issue for two days. A developer recommended using 2.2.5, but I was still having problems. Version 2.24 worked for me...
Regarding the mismatch in the types, this is caused due to a mismatch between the version of @clerk/types that a specific @clerk/expo version expects, versus the @clerk/types versions that is actually installed in your machine.
This is a common issue especially if you installing @clerk/types
directly.
To fix: Installing this combo, should fix your issues.
"@clerk/clerk-expo": "2.2.5"
"@clerk/types": "4.17.0"
@andrewchester1 what issues are you having with 2.2.5 ?
@panteliselef I was not declaring @clerk/types
in the package.json. These are being managed by your dep tree. I am just trying to use Clerk types, but the library itself doesn't expose these types. I'm using whatever clerk-expo
declares.
@clerk/backend: ^1.9.2 => 1.9.2
@clerk/clerk-expo: 2.2.5 => 2.2.5
@clerk/clerk-react: ^5.7.0 => 5.7.0
I see the 2.2.4 uses "@clerk/types": "4.17.0", but it looks like clerk- react uses a later version.
The problem is there's no way to know that that's disagreement with the underlying deps because this isn't set up like a traditional monorepo where the versions are synchronised ( storybook, babel, etc ). I had to dig into all the package.json in the git history to figure out that you released clerk-react at 5.5.0 at the same time as clerk-expo 2.2.5. There's no peer dependencies or anything to suggest these are not compatible - but they are not compatible due to the underlying types dependency.
At the same time, considering the the dependencies themselves, if they expose the types I need, I don't see how to do this clearly. What I want to do is write a function where I enforce the type that one of your libraries outputted, is there a better way to do this?
I'm going to close this because I looked through your git history to find 'matching clients'. You should still fix this.
Preliminary Checks
[X] I have reviewed the documentation: https://clerk.com/docs
[X] I have searched for existing issues: https://github.com/clerk/javascript/issues
[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
n/a
Publishable key
pk_test_Y2hvaWNlLXBlYWNvY2stMy5jbGVyay5hY2NvdW50cy5kZXYk
Description
I am this issue with
clerk-expo
I was able to get past this on 2.2.7 but after downgrading because of https://github.com/clerk/javascript/issues/4084 the window problem to 2.2.5 this problem is back.
I will get the following:
Additional Info: This was working before version 2.x.x with no tsc errors.
There is a similar issue here: https://github.com/clerk/javascript/issues/2176 , but the issue seemed slightly different so I am opening this issue.
Environment