Commit 5913ae9
committed
fix(nextjs): Import from @clerk/shared to avoid barrel side effects in RSC
Import clerkJSScriptUrl, buildClerkJSScriptAttributes, clerkUIScriptUrl
from @clerk/shared/loadClerkJsScript instead of @clerk/react/internal in
the shared ClerkScriptTags component. The @clerk/react/internal barrel
re-exports modules that use React.createContext, which breaks when the
RSC bundler evaluates the barrel in server component context.1 parent 3d14a18 commit 5913ae9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments