Skip to content

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Nov 22, 2022

Summary

Use a recent version of @types/node that works with TypeScript 4.9, older versions have types issues.

Other info

This wasn't detected by the GitHub Actions but the problem could happen locally depending on the content of the existing node_modules directory.

Fixed error

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; }'.

Use a recent version of `@types/node` that works with TypeScript 4.9, older versions have types issues.
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Nov 22, 2022
@tbouffard tbouffard merged commit 6fe7f7f into development Nov 22, 2022
@tbouffard tbouffard deleted the chore/bump_types_node_version branch November 22, 2022 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant