pitcheye.dev← All 30 rules
severity: errorpack: clerkv1.0 core

clerk/userprofile-page-missing-props

<UserProfile.Page> is missing a required prop

npx @pitcheye/check . --pack clerk

whyItBreaks

Clerk drops the section entirely when any of `label`, `url` or `labelIcon` is missing. It throws nothing and renders nothing, so the page the developer just wrote simply never appears in the user menu and there is no error to search for.

✖ Bad — triggers errorfixtures/clerk-userprofile-page-missing-props/bad
<UserProfile.Page label="Billing" url="billing">…</UserProfile.Page>
✓ Good — passes checkfixtures/clerk-userprofile-page-missing-props/good
<UserProfile.Page label="Billing" url="billing" labelIcon={<span>$</span>}>…</UserProfile.Page>

suggestedFix

Pass all three props: `<UserProfile.Page label="Billing" url="billing" labelIcon={<span>$</span>}>`.

explain_rule({"clerk/userprofile-page-missing-props"})

Agent & MCP JSON output contract

{
  "ruleId": "clerk/userprofile-page-missing-props",
  "pack": "clerk",
  "severity": "error",
  "file": "apps/web/src/app/api/listings/route.ts",
  "line": 6,
  "message": "`<UserProfile.Page>` without `label`, `url` and `labelIcon`",
  "whyItBreaks": "Clerk drops the section entirely when any of `label`, `url` or `labelIcon` is missing. It throws nothing and renders nothing, so the page the developer just wrote simply never appears in the user menu and there is no error to search for.",
  "suggestedFix": "Pass all three props: `<UserProfile.Page label=\"Billing\" url=\"billing\" labelIcon={<span>$</span>}>`.",
  "docsUrl": "https://pitcheye.dev/rules/clerk-userprofile-page-missing-props"
}

Markdown: curl -H "Accept: text/markdown" https://pitcheye.dev/rules/clerk-userprofile-page-missing-props

raw markdown
# clerk/userprofile-page-missing-props

- **severity:** error
- **pack:** clerk
- **docs:** https://pitcheye.dev/rules/clerk-userprofile-page-missing-props

## whyItBreaks

Clerk drops the section entirely when any of `label`, `url` or `labelIcon` is missing. It throws nothing and renders nothing, so the page the developer just wrote simply never appears in the user menu and there is no error to search for.

## bad

```ts
<UserProfile.Page label="Billing" url="billing">…</UserProfile.Page>
```

## good

```ts
<UserProfile.Page label="Billing" url="billing" labelIcon={<span>$</span>}>…</UserProfile.Page>
```

## suggestedFix

Pass all three props: `<UserProfile.Page label="Billing" url="billing" labelIcon={<span>$</span>}>`.

## commands

```bash
npx @pitcheye/check . --pack clerk
```

```json
{"tool":"explain_rule","arguments":{"ruleId":"clerk/userprofile-page-missing-props"}}
```
← clerk/ui-only-role-gateBack to rule catalogclerk/middleware-blocks-webhooks →