Upgrade to Node 18 in Vercel dashboard gives me issues in API routes
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
Hi everyone,
After moving from the Node v14 to v18 I'm getting issues in my API route. Basically I'm sending data from a form to a 3rd party service (Zapier). After moving to v18 there are a few issues that popped up. Firstly, it required me to add a property to the request options
Thanks!
After moving from the Node v14 to v18 I'm getting issues in my API route. Basically I'm sending data from a form to a 3rd party service (Zapier). After moving to v18 there are a few issues that popped up. Firstly, it required me to add a property to the request options
duplex 'half'
(I'm using a readable stream as I'm sending over files as well as text which resolved the first error and everything works fine on localhost. However, in the serverless function itself (prod env) it now throws this error: Cannot define property x-vercel-id, object is not extensible
. Does anyone have experience with this? I'm not sure what object is error referring to and therefore, no idea how to fix this.Thanks!