-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
TypeError: e.getSetCookie is not a function #56947
Comments
Just wanted to open this. Breaked lucia-auth in my project. I also digged a bit more and discovered that this issue is not preset when using Node v16, while being present on Node Stable(v19.3.0). |
I can repro this with node 18.11, you can upgrade your nodejs version 18.16 it will fix the problem |
I think I have a similar issue -> TypeError: responseHeaders.getSetCookie is not a function. |
@huozhi you have right! Upgrading Node.js to 18.16.1 resolved issue. App also successfully builds on Vercel ❤ |
I experienced this error after upgrading NextJS to I used node version manager ( You can follow these instructions to install |
upgrade fix the issue, use latest node --v v18.18.2 |
Yes, After Upgrading the Node Version to Latest will solve this problem. |
I've tried Node versions 18.18.2, 19.0.0, 21.0.0 and have this issue with both draftMode().enable() and cookies().set(). Are there other workarounds? |
We patched a fix https://github.com/vercel/next.js/releases/tag/v13.5.6, please upgrade to the new version |
|
This worked for me. THANK YOU! |
It also worked for me! And I am running |
I actually encountered issues with API routes in |
If you're running 13.5.6, the allowed engine versions of node.js should be fine |
Link to the code that reproduces this issue
https://github.com/grzegorzpokorski/nextjs-getsetcookie-error
To Reproduce
pnpm i
pnpm dev
localhost:3000
in browserCurrent vs. Expected behavior
error should not occur
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 Binaries: Node: 18.11.0 npm: 8.19.2 Yarn: 1.22.19 pnpm: 8.9.2 Relevant Packages: next: 13.5.6-canary.2 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
No response
The text was updated successfully, but these errors were encountered: