-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js 15 canary with experimental PPR + dynamicIO issue calling headers() #4445
Comments
@Jussinevavuori are you still experiencing this issue in the new major |
Yes. Still getting the error. I'm using Next.js app router with the following versions. It's been happening with all
|
i've pinpointed this issue. It seems that when you have a component rendered as a child of example: import { auth } from "@clerk/nextjs/server";
import { Suspense } from "react";
export default function SuspensePage() {
return (
<Suspense fallback={<div>Loading...</div>}>
<AwaitedPage />
</Suspense>
)
}
const AwaitedPage = async() => {
const { orgId, userId } = await auth();
return (
<div>{"org: " + orgId + " user: " + userId}</div>
)
} however if you render the async server component without example: import { auth } from "@clerk/nextjs/server";
import { Suspense } from "react";
export default function Page() {
return (
<AwaitedPage />
)
}
const AwaitedPage = async() => {
const { orgId, userId } = await auth();
return (
<div>{"org: " + orgId + " user: " + userId}</div>
)
} here are my dependencies: "dependencies": {
"@clerk/nextjs": "^6.9.6",
"next": "^15.1.1-canary.23",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106", here's the exact error i have:
One thing to note:I notice the OP @Jussinevavuori 's example repo is using the |
@dauncy Thanks for providing more info on this. Moving away from using |
@Jussinevavuori @dauncy in case you want to try out an immediate fix you can use this snapshot |
very nice. works for me! |
Preliminary Checks
I have reviewed the documentation: https://clerk.com/docs
I have searched for existing issues: https://github.com/clerk/javascript/issues
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
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/Jussinevavuori/clerk-next15-ppr-dynamicio-headers-issue
Publishable key
pk_test_ZnJlc2gtcmFtLTkxLmNsZXJrLmFjY291bnRzLmRldiQ
Description
Steps to reproduce:
bun install
..env.example
as.env
and set up the required Clerk.env
variables.bun dev
.Expected behavior:
Should not cause any errors.
Actual behavior:
Causes below error.
Environment
The text was updated successfully, but these errors were encountered: