[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.
Summary
Getting this error when signing out using the provided components.
errorMessage: Error: Invariant: cookies() expects to have requestAsyncStorage, none available.
file: webpack-internal:///(app-pages-browser)/../../nodemodules/.pnpm/next@14.0.4-canary.36@babel+core@7.26.0_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/client/components/headers.js
methodName: cookies
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
https://github.com/clerk/javascript/pull/4396
Publishable key
pk_test_ZGl2aW5lLXNlYWhvcnNlLTEwLmNsZXJrLmFjY291bnRzLmRldiQ
Description
Summary Getting this error when signing out using the provided components.
errorMessage: Error: Invariant: cookies() expects to have requestAsyncStorage, none available. file: webpack-internal:///(app-pages-browser)/../../nodemodules/.pnpm/next@14.0.4-canary.36@babel+core@7.26.0_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/client/components/headers.js methodName: cookies
Can be related to : https://github.com/clerk/javascript/pull/4396 . Got fixed by reverting to ^6.0.0 just before this change got merged
Steps to reproduce:
@/components/user-profile.tsx
app/page.tsx
Environment