Upgraded to 13.5.5 (from 13.5.4) - Error: e.getSetCookie is not a function when invoking draftMode()
Answered
Cape lion posted this in #help-forum
Cape lionOP
I have two different projects that use Next draftMode with Sanity. Just upgraded to 13.5.5 from 13.5.4 and both throw this error.
Client
Server
Client
TypeError: e.getSetCookie is not a functionServer
TypeError: responseHeaders.getSetCookie is not a functionAnswered by Giant panda
Hey everyone, upgrading Node to at least 18.16 should solve your issue: https://github.com/vercel/next.js/pull/56856#issuecomment-1767582391
5 Replies
Miniature Fox Terrier
Same error!
Barbary Lion
Same here 👋
Cape lionOP
There are dozens of us!
Giant panda
It's a known regression. Downgrade to 13.5.4 for now.
Giant panda
Hey everyone, upgrading Node to at least 18.16 should solve your issue: https://github.com/vercel/next.js/pull/56856#issuecomment-1767582391
Answer