Skip to content

UserButton can only be used within the <ClerkProvider /> component #9

@ReOpAu

Description

@ReOpAu

After Subscription:
Oops!
@clerk/react-router: UserButton can only be used within the component. Learn more: https://clerk.com/docs/components/clerk-provider
throwMissingClerkProviderError@http://localhost:5173/node_modules/.vite/deps/chunk-C6JMXCRD.js:118:22
@http://localhost:5173/node_modules/.vite/deps/@clerk_react-router.js:1061:48
useAssertWrappedByClerkProvider@http://localhost:5173/node_modules/.vite/deps/@clerk_react-router.js:408:22
useAssertWrappedByClerkProvider2@http://localhost:5173/node_modules/.vite/deps/@clerk_react-router.js:1060:34
withClerk(UserButton)@http://localhost:5173/node_modules/.vite/deps/@clerk_react-router.js:1196:37
react-stack-bottom-frame@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:17424:29
renderWithHooks@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:4206:42
updateFunctionComponent@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:6619:36
runWithFiberInDEV@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:1487:23
performUnitOfWork@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:10868:115
workLoopSync@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:10728:60
renderRootSync@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:10711:25
performWorkOnRoot@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:10359:60
performWorkOnRootViaSchedulerTask@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:11623:26
performWorkUntilDeadline@http://localhost:5173/node_modules/.vite/deps/react-dom_client.js:36:58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions