Node 24 Support on Vercel

I am trying to build a project that uses Node 24, it looks like this is not supported on Vercel yet

For example, trying to use the new URLPattern API made available in Node 24 errors out

ReferenceError: URLPattern is not defined


Was hoping to at least raise this to get an idea of when it might be available.

Hi, @thescientist13! Welcome to the Vercel Community :waving_hand:

I’ll follow up to get an update on when Node 24 will be available. Based on internal discussions earlier this year, support for Node 24 likely won’t roll out until later this year. Please note that this timeline is tentative and subject to change.

I did check with v0, and it recommended that you can use a polyfill. i.e. install the urlpattern-polyfill package:

npm install urlpattern-polyfill

Then import it at the top of your file:

import 'urlpattern-polyfill';

That might be a workaround for now, whilst we get updates.

3 Likes

Thanks @pawlean , would very much be interested in knowing when that support will roll out.