visx packages are incompatible with the latest version of @types/d3-shape (3.2.0)
Author: kgetz-aristaCreated Sep 1, 2026Updated Sep 1, 2026
visx packages are pinning a very specific version of @types/d3-shape (3.1.7):
https://github.com/airbnb/visx/blob/master/packages/visx-vendor/package.json#L27
This version is incompatible with the latest version of @types/d3-shape (3.2.0). If you try to use both in the same project, you'll get TypeScript errors like this:
src/SankeyGraph/Link.tsx:82:5 - error TS2741: Property 'digits' is missing in type 'import("/home/jenkins/workspace/Geiger/geiger-review/common/temp/node_modules/.pnpm/@[email protected]/node_modules/@types/d3-shape/index").Line<PointDatum>' but required in type 'd3.Line<PointDatum>'.
82 return line<PointDatum>({
~~~~~~
../../common/temp/node_modules/.pnpm/@[email protected]/node_modules/@types/d3-shape/index.d.ts:771:5 - 'digits' is declared here.
771 digits(): number | null;
~~~~~~~~~~~~~~~~~~~~~~~~Source: airbnb/visx