I'm trying to build my socket.io code which used to build well, but now I don't know what changes caused the project build to give an error. Apparently, TransformStream, one of the built-in libraries of node, cannot be loaded in Typescript
node_modules/engine.io-parser/build/esm/index.d.ts:6:54 - error TS2304: Cannot find name 'TransformStream'.
6 export declare function createPacketEncoderStream(): TransformStream<Packet, any>;
~~~~~~~~~~~~~~~
node_modules/engine.io-parser/build/esm/index.d.ts:7:96 - error TS2304: Cannot find name 'TransformStream'.
7 export declare function createPacketDecoderStream(maxPayload: number, binaryType: BinaryType): TransformStream<Uint8Array, any>;
~~~~~~~~~~~~~~~
If I put the following line in the part
node_modules/engine.io-parser/build/esm/index.d.ts:6:54
If I enter it, the error will be fixed, but this is not a correct way.
import { TransformStream } from "stream/web";
I also tried node in "types" tsconfig.json, but it didn't help
package.json?