-
-
Notifications
You must be signed in to change notification settings - Fork 88
Closed as not planned
Description
The node:
namespace imports used by the library were backported to Node.js v12, see nodejs/node#35757.
They are also only supported by @types/node
starting v16, see DefinitelyTyped/DefinitelyTyped#52595 (comment). That has the following TypeScript error as a consequence when trying to use the newest library version in jestjs/jest codebase that relies on "@types/node": "~14.14.45"
:
packages/jest-util/node_modules/supports-color/index.d.ts:1:32 - error TS2307: Cannot find module 'node:tty' or its corresponding type declarations.
1 import type {WriteStream} from 'node:tty';
~~~~~~~~~~
Please consider giving up the use of the namespace.
Metadata
Metadata
Assignees
Labels
No labels