Skip to content

Issue with TS4.9 - 'AbortSignal' was also declared here. #51567

@jogibear9988

Description

@jogibear9988

Bug Report

After upgradeing to Typescript 4.9 I get now this error.

  [20:27:02] Starting compilation in watch mode...
  
  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; timeout(milliseconds: number): AbortSignal; }'.
  
  72 declare var AbortSignal: {
                 ~~~~~~~~~~~
  
    node_modules/typescript/lib/lib.dom.d.ts:2071:13
      2071 declare var AbortSignal: {
                       ~~~~~~~~~~~
      'AbortSignal' was also declared here.
  
  [20:27:09] Found 1 error. Watching for file changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions