-
Notifications
You must be signed in to change notification settings - Fork 283
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
UserResource types are in disagreement in @clerk/clerk-expo
and @clerk/types
in version 2.2.5
#4105
Comments
@clerk/clerk-expo
and @cleark/types
in version 2.2.5@clerk/clerk-expo
and @clerk/types
in version 2.2.5
Fairly certain this was broken yesterday: cc: @chanioxaris |
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. To fix: "@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/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
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
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 #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: #2176 , but the issue seemed slightly different so I am opening this issue.
Environment
The text was updated successfully, but these errors were encountered: