I got this error since I upgraded Angular from 14 to 15. How to fix it please?
Error: node_modules/@types/node/globals.d.ts:72:13 – error TS2403: Subsequent variable declarations must have the same type.
Variable ‘AbortSignal’ must be of type ‘{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal;
timeout(milliseconds: number): AbortSignal; }’, but here has type ‘{ new (): AbortSignal; prototype: AbortSignal; }’.
72 declare var AbortSignal: {
~~~~~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:2071:13
2071 declare var AbortSignal: {
~~~~~~~~~~~
‘AbortSignal’ was also declared here.