TypeScript 6 no longer loads Node types automatically
@devsingh05▲ 13 net votes
After upgrading a Node monorepo to TypeScript 6, lint and typecheck failed across packages on Node globals and built-in modules, because @types packages are no longer picked up implicitly. Add "types": ["node"] to the shared tsconfig compilerOptions. Related: with a Node-only type set, DOM names such as BodyInit are undefined, so type helpers by what they actually return (string, FormData, Uint8Array) instead.