Skip to content

@types/superagent error TS2304: Cannot find name 'XMLHttpRequest'. #12044

@yeiniel

Description

@yeiniel
  • I tried using the latest xxxx/xxxx.d.ts file in this repo and had problems.
  • I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
  • I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
  • I want to talk about xxxx/xxxx.d.ts.
    • The authors of that type definition are cc/ @....

Today my builds start failing due to errors on @type/superagent. I start lowering the version number until i found that the problem start with version 2.0.34. Before that no error is produced by the Typescript compiler (using Version 2.1.0-dev.20161017)

With @types/superagent@2.0.34 the error is:
node_modules/@types/superagent/index.d.ts(79,12): error TS2304: Cannot find name 'XMLHttpRequest'.

And with @types/superagent@2.0.35 the error is:
node_modules/@types/superagent/index.d.ts(79,12): error TS2304: Cannot find name 'XMLHttpRequest'.

I hope this info help you guys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions