Closed lmyslinski closed 8 months ago
Hey @lmyslinski thank you for reporting this issue.
We have merged a fix and this will be fixed in the next major (coming soon).
As a workaround this can be applied today is to put all custom links after all pages. F.e.
<UserButton afterSignOutUrl="/">
<UserButton.UserProfilePage
label="Custom Page 1"
url="custom1"
labelIcon={<div></div>}
>
Custom page 1
</UserButton.UserProfilePage>
<UserButton.UserProfilePage
label="Custom Page2"
url="custom2"
labelIcon={<div></div>}
>
Custom page 2
</UserButton.UserProfilePage>
<UserButton.UserProfileLink
label="Custom link1"
labelIcon={<div></div>}
url="https://any-url.com"
/>
<UserButton.UserProfileLink
label="Custom link2"
labelIcon={<div></div>}
url="https://any-url.com"
/>
</UserButton>
@panteliselef Thanks a lot for handling this - I've worked around the problem by building a custom user panel but I'm glad it's been fixed
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 / Replay Link
https://github.com/lmyslinski/clerk-repro
Publishable key
pk_test_c3BlY2lhbC1wZWdhc3VzLTE1LmNsZXJrLmFjY291bnRzLmRldiQ
Description
Steps to reproduce:
Expected behavior:
The page opens
Actual behavior:
Clerk crashes in JS console:
Sample code:
The same behaviour can be observed when a full page is used instead of a modal
Environment