Next.js Discord

Discord Forum

How do i use Typescript 5.5's set intersection?

Unanswered
American Fuzzy Lop posted this in #help-forum
Open in Discord
American Fuzzy LopOP
Hello! How do i use typescript 5.5s set intersection? It's failing on production with runtime error ".intersection" is not a method.

I have both esnext and es2023 set in my tsconfig.json

i have typescript 5.5 enabled in my package.json

what's going on?

1 Reply

American Fuzzy LopOP
Looks like Next uses Node 20 on the server side. Shouldn't the transpilation step polyfill this though?