Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find name XMLHttpRequest in polling-xhr.d.ts #1629

Open
Granjow opened this issue Feb 27, 2025 · 0 comments
Open

Cannot find name XMLHttpRequest in polling-xhr.d.ts #1629

Granjow opened this issue Feb 27, 2025 · 0 comments

Comments

@Granjow
Copy link

Granjow commented Feb 27, 2025

With version 4.8.1 of socket.io-client and Node.js 22, "@types/node": "22.13.5" and "typescript": "^5.7.3", I have a build error:

node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts:65:58 - error TS2304: Cannot find name 'XMLHttpRequest'.

65     constructor(createRequest: (opts: RequestOptions) => XMLHttpRequest, uri: string, opts: RequestOptions);

Probably related: #1561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant