Compiling Anki on centos 7.9 with GLIBC 2.18

I am trying to build Anki 2.1.33 on centos 7.9. The GLIBC is an old one. I complied the GLIBC 2.18 which is need by anki 2.1.33. How do I use the new GLIBC version that is there in my /opt?

Thanks.

also I am getting this error while compiling

make[1]: Entering directory /opt/anki-2.1.33/rslib' make[1]: Nothing to be done for develop’.
make[1]: Leaving directory /opt/anki-2.1.33/rslib' make[1]: Entering directory /opt/anki-2.1.33/rspy’
make[1]: Nothing to be done for develop'. make[1]: Leaving directory /opt/anki-2.1.33/rspy’
make[1]: Entering directory /opt/anki-2.1.33/pylib' make[1]: Nothing to be done for develop’.
make[1]: Leaving directory /opt/anki-2.1.33/pylib' make[1]: Entering directory /opt/anki-2.1.33/ts’
npm run build

anki@0.1.0 build
cross-env NODE_ENV=production webpack

Hash: 024820f74a7c2925b25a
Version: webpack 4.46.0
Time: 11304ms
Built at: 05/12/2021 9:19:20 AM
1 asset
Entrypoint graphs = graphs.js
[12] (webpack)/buildin/global.js 472 bytes {0} [built]
[41] multi ./src/stats/graphs-bootstrap.ts 28 bytes {0} [built]
[60] ./src/stats/graphs.scss 570 bytes {0} [built]
[61] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/stats/graphs.scss 2.2 KiB {0} [built]
[62] ./src/stats/CardCounts.svelte.css 580 bytes {0} [built]
[63] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/stats/CardCounts.svelte.css 509 bytes {0} [built]
[64] ./src/stats/GraphsPage.svelte.css 580 bytes {0} [built]
[65] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/stats/GraphsPage.svelte.css 283 bytes {0} [built]
[66] ./src/stats/graphs-bootstrap.ts + 208 modules 443 KiB {0} [built]
| ./src/stats/graphs-bootstrap.ts 396 bytes [built]
| ./src/i18n.ts 2.93 KiB [built]
| ./src/stats/GraphsPage.svelte 19.7 KiB [built]
| ./src/backend/proto.js 63.5 KiB [built]
| ./src/stats/graphs.ts 3.19 KiB [built]
| ./src/stats/IntervalsGraph.svelte 8.02 KiB [built]
| ./src/stats/EaseGraph.svelte 3.58 KiB [built]
| ./src/stats/AddedGraph.svelte 5.48 KiB [built]
| ./src/stats/TodayStats.svelte 4.06 KiB [built]
| ./src/stats/ButtonsGraph.svelte 5.55 KiB [built]
| ./src/stats/CardCounts.svelte 7.32 KiB [built]
| ./src/stats/HourGraph.svelte 5.62 KiB [built]
| ./src/stats/FutureDue.svelte 7.08 KiB [built]
| ./src/stats/ReviewsGraph.svelte 8.45 KiB [built]
| ./src/stats/CalendarGraph.svelte 6.8 KiB [built]
| + 194 hidden modules
+ 246 hidden modules

ERROR in /opt/anki-2.1.33/ts/src/stats/added.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/added.ts(73,26)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(207,43)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(207,50)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(224,32)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<SVGRectElement, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<SVGRectElement, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 4, ‘(name: string, value: ValueFn<SVGRectElement, Datum, string | number | boolean | null>): Selection<SVGRectElement, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<SVGRectElement, Datum, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<SVGRectElement, Datum, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(230,74)
TS2769: No overload matches this call.
Overload 1 of 3, ‘(name: string, value: null): Transition<BaseType, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 3, ‘(name: string, value: string | number | boolean): Transition<BaseType, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 3, ‘(name: string, value: ValueFn<BaseType, Datum, string | number | boolean | null>): Transition<BaseType, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<BaseType, Datum, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<BaseType, Datum, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(246,5)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘() => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Datum, BaseType, unknown>’, gave the following error.
Argument of type ‘() => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘() => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Datum, string | number | boolean | null>): Selection<…>’, gave the following error.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(253,31)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/buttons.ts(253,38)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts(121,59)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts(142,5)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, BaseType, unknown>’, gave the following error.
Argument of type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, BaseType, unknown>’, gave the following error.
Argument of type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, string | number | boolean | null>): Selection<…>’, gave the following error.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts(148,20)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts(148,42)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/calendar.ts(160,23)
TS2769: No overload matches this call.
Overload 1 of 3, ‘(name: string, value: null): Transition<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, BaseType, unknown>’, gave the following error.
Argument of type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => string | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 3, ‘(name: string, value: string | number | boolean): Transition<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, BaseType, unknown>’, gave the following error.
Argument of type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => string | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => string | undefined’ is not assignable to type ‘true’.
Overload 3 of 3, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, string | number | boolean | null>): Transition<…>’, gave the following error.
Argument of type ‘(this: Element | EnterElement | Document | Window | SVGRectElement | null, d: DayDatum) => string | undefined’ is not assignable to parameter of type ‘ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, DayDatum, string | number | boolean | null>’.
Type ‘string | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/future-due.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/future-due.ts(121,27)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(79,35)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(79,45)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(89,41)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(89,48)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(101,32)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(d: any) => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>): Selection<SVGRectElement, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>’.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(102,32)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): string & Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(151,20)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(d: any) => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, string | … 2 more … | null>): Selection<…>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, string | number | boolean | null>’.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(154,31)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/histogram-graph.ts(154,38)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(99,60)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(128,42)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(128,49)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(141,32)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<SVGRectElement, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<SVGRectElement, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 4, ‘(name: string, value: ValueFn<SVGRectElement, Hour, string | number | boolean | null>): Selection<SVGRectElement, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<SVGRectElement, Hour, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<SVGRectElement, Hour, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(148,74)
TS2769: No overload matches this call.
Overload 1 of 3, ‘(name: string, value: null): Transition<BaseType, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 3, ‘(name: string, value: string | number | boolean): Transition<BaseType, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 3, ‘(name: string, value: ValueFn<BaseType, Hour, string | number | boolean | null>): Transition<BaseType, Hour, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<BaseType, Hour, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<BaseType, Hour, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(172,21)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(y: null): Area’, gave the following error.
Argument of type ‘(d: Hour) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(y: number): Area’, gave the following error.
Argument of type ‘(d: Hour) => number | undefined’ is not assignable to parameter of type ‘number’.
Overload 3 of 4, ‘(y: (d: Hour, index: number, data: Hour[]) => number): Area’, gave the following error.
Argument of type ‘(d: Hour) => number | undefined’ is not assignable to parameter of type ‘(d: Hour, index: number, data: Hour[]) => number’.
Type ‘number | undefined’ is not assignable to type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(199,31)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/hours.ts(199,38)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/intervals.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/intervals.ts(106,26)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(190,35)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(190,45)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(197,27)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(200,27)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(202,59)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(205,57)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(208,63)
TS2345: Argument of type ‘number | undefined’ is not assignable to parameter of type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(268,41)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(268,48)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(294,36)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(d: any) => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>): Selection<SVGRectElement, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>’.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(295,36)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): string & Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): string & Selection<SVGRectElement, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 4, ‘(name: string, value: ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>): string & Selection<SVGRectElement, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<SVGRectElement, Bin<number, number>, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(301,78)
TS2769: No overload matches this call.
Overload 1 of 3, ‘(name: string, value: null): Transition<BaseType, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘null’.
Type ‘undefined’ is not assignable to type ‘null’.
Overload 2 of 3, ‘(name: string, value: string | number | boolean): Transition<BaseType, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean’.
Overload 3 of 3, ‘(name: string, value: ValueFn<BaseType, Bin<number, number>, string | number | boolean | null>): Transition<BaseType, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘number | undefined’ is not assignable to parameter of type ‘ValueFn<BaseType, Bin<number, number>, string | number | boolean | null>’.
Type ‘undefined’ is not assignable to type ‘ValueFn<BaseType, Bin<number, number>, string | number | boolean | null>’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(330,24)
TS2769: No overload matches this call.
Overload 1 of 3, ‘(x: number): Area<[number, number]>’, gave the following error.
Argument of type ‘(d: [number, number], idx: number) => number | undefined’ is not assignable to parameter of type ‘number’.
Overload 2 of 3, ‘(x: (d: [number, number], index: number, data: [number, number][]) => number): Area<[number, number]>’, gave the following error.
Argument of type ‘(d: [number, number], idx: number) => number | undefined’ is not assignable to parameter of type ‘(d: [number, number], index: number, data: [number, number][]) => number’.
Type ‘number | undefined’ is not assignable to type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(338,25)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(y: null): ((d: [number, number], index: number, data: [number, number][]) => number) & Area<[number, number]>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(y: number): ((d: [number, number], index: number, data: [number, number][]) => number) & Area<[number, number]>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘number’.
Overload 3 of 4, ‘(y: (d: [number, number], index: number, data: [number, number][]) => number): ((d: [number, number], index: number, data: [number, number][]) => number) & Area<[number, number]>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘(d: [number, number], index: number, data: [number, number][]) => number’.
Type ‘number | undefined’ is not assignable to type ‘number’.
Type ‘undefined’ is not assignable to type ‘number’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(343,5)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): string & Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘() => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): string & Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘() => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘() => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, string | … 2 more … | null>): string & Selection<…>’, gave the following error.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(347,20)
TS2769: No overload matches this call.
Overload 1 of 4, ‘(name: string, value: null): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘null’.
Overload 2 of 4, ‘(name: string, value: string | number | boolean): Selection<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<…>, BaseType, unknown>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘string | number | boolean’.
Type ‘(d: any) => number | undefined’ is not assignable to type ‘true’.
Overload 3 of 4, ‘(name: string, value: ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, string | … 2 more … | null>): Selection<…>’, gave the following error.
Argument of type ‘(d: any) => number | undefined’ is not assignable to parameter of type ‘ValueFn<Element | EnterElement | Document | Window | SVGRectElement | null, Bin<number, number>, string | number | boolean | null>’.
Type ‘number | undefined’ is not assignable to type ‘string | number | boolean | null’.
Type ‘undefined’ is not assignable to type ‘string | number | boolean | null’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(350,31)
TS2532: Object is possibly ‘undefined’.

ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts
[tsl] ERROR in /opt/anki-2.1.33/ts/src/stats/reviews.ts(350,38)
TS2532: Object is possibly ‘undefined’.
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/html/graphs.html 697 bytes {0} [built]
make[1]: Leaving directory `/opt/anki-2.1.33/ts’