Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/hot-toys-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nextjs': patch
---

Fix export of `RedirectToTasks` control component
1 change: 1 addition & 0 deletions packages/nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export {
RedirectToOrganizationProfile,
RedirectToSignIn,
RedirectToSignUp,
RedirectToTasks,
RedirectToUserProfile,
} from './client-boundary/controlComponents';
Comment on lines +15 to 17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify the source module actually exports RedirectToTasks

Ensure ./client-boundary/controlComponents provides a named export RedirectToTasks (and no duplicate re-exports elsewhere) to avoid runtime/import errors.

Run this script to confirm:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "1) Verify source module exports RedirectToTasks (named export or declaration):"
rg -n -A 2 -B 2 $'\bexport\\s+\\{[^}]*\\bRedirectToTasks\\b' packages/nextjs/src || true
rg -n -A 2 -B 2 $'\bexport\\s+(const|function|class)\\s+RedirectToTasks\\b' packages/nextjs/src || true

echo -e "\n2) Confirm index.ts re-export path is present:"
rg -n -A 1 -B 1 "from './client-boundary/controlComponents'" packages/nextjs/src/index.ts

echo -e "\n3) Check for props type export (optional but recommended):"
rg -n -A 2 -B 2 $'\bexport\\s+type\\s+.*RedirectToTasks.*Props\\b' packages/nextjs/src || true

echo -e "\n4) Ensure no duplicate re-exports elsewhere:"
rg -n -A 1 -B 1 $'\bexport\\s+\\{[^}]*\\bRedirectToTasks\\b' packages -g '!packages/nextjs/src/index.ts' || true

Length of output: 1095


Missing RedirectToTasks Export in controlComponents

The re-export in packages/nextjs/src/index.ts references a RedirectToTasks symbol that isn’t defined or exported in ./client-boundary/controlComponents. This will cause a runtime import error.

• Location of broken re-export:

  • File: packages/nextjs/src/index.ts
  • Lines: 15–17 (includes RedirectToTasks, … } from './client-boundary/controlComponents';)

Action required:

  • Add a corresponding export (function, class, or const) for RedirectToTasks in packages/nextjs/src/client-boundary/controlComponents, or
  • Remove or correct the re-export in the index file to match the actual exports.
🤖 Prompt for AI Agents
In packages/nextjs/src/index.ts around lines 15–17 the named export
RedirectToTasks is re-exported from './client-boundary/controlComponents' but
that symbol is not defined there; either add a matching export named
RedirectToTasks (function/class/const) into
packages/nextjs/src/client-boundary/controlComponents and export it, or
remove/rename the RedirectToTasks entry in the index re-export so it matches the
actual exported names from controlComponents; ensure the exported identifier
spelling and casing match exactly and update any imports/tests that expect
RedirectToTasks.


Expand Down
Loading