You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous commit [1] tried to work around the fact that the
TransformStream object is not exposed in the global scope in the
`@types/node` package, even though it is since Node.js `v18.0.0`.
Unfortunately, it created two new issues:
- using an older `@types/node` version (before v16) would fail with:
> error TS2307: Cannot find module 'node:stream/web' or its corresponding type declarations.
Related: #5064 (comment)
- browser-only environments would somehow include the node types,
leading to conflicts like the return value of the setTimeout() method
Related:
- #5064 (comment)
- #5065
[1]: socketio/engine.io-parser@0305b4a
In
build/esm/index.d.ts
andbuild/cjs/index.d.ts
the following line is emitted:/// <reference types="node" />
This will cause any (in-)direct import to pull in node types, polluting the global namespace.
To illustrate why this is an issue:
The issue was introduced with version
5.2.2
and this commit: socketio/engine.io-parser@0305b4aThe last good version is
5.2.1
.The text was updated successfully, but these errors were encountered: