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 ActiveXObject #124

Closed
pubkey opened this issue May 22, 2017 · 5 comments
Closed

Cannot find name ActiveXObject #124

pubkey opened this issue May 22, 2017 · 5 comments

Comments

@pubkey
Copy link

pubkey commented May 22, 2017

Description: When I use this module, it throws an error because it cannot find ActiveXObject.

Typescript-version: 2.3.2

CompilerOptions:

  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "baseUrl": ".",
    "declaration": false,
    "experimentalDecorators": false,
    "module": "amd",
    "moduleResolution": "node",
    "noImplicitThis": false,
    "noImplicitUseStrict": false,
    "noUnusedParameters": false,
    "noUnusedLocals": false,
    "sourceMap": true,
    "strictNullChecks": false,
    "target": "es5",
    "noImplicitAny": false,
    "removeComments": true,
    "noLib": false,
    "preserveConstEnums": true,
    "suppressImplicitAnyIndexErrors": true,
    "lib": [
      "dom",
      "es7",
      "es2017.object"
    ],
    "outDir": "tmp"
  }

Steps to reproduce:

Expected result: No Error
Actual result:

node_modules/dojo-typings/dojo/1.11/_base.d.ts(1867,32): error TS2304: Cannot find name 'ActiveXObject'.
node_modules/dojo-typings/dojo/1.11/dojo.d.ts(411,30): error TS2304: Cannot find name 'ActiveXObject'.
node_modules/dojo-typings/dojo/1.11/request.d.ts(431,32): error TS2304: Cannot find name 'ActiveXObject'

Version: 1.11.6

Any additional information:
I tried to add ActiveXObject manually, which also did not work:

declare const ActiveXObject: (type: string) => void;
@pubkey
Copy link
Author

pubkey commented May 22, 2017

A hotfix is to add ActiveXObject manually:

interface ActiveXObject {

}

@dasa
Copy link
Contributor

dasa commented May 22, 2017

Another option is to add scripthost to your libs.

@pubkey
Copy link
Author

pubkey commented May 29, 2017

Closing this since I don't think anyone would fix.

@pubkey pubkey closed this as completed May 29, 2017
@dylans dylans reopened this May 29, 2017
@dylans
Copy link
Member

dylans commented May 29, 2017

Reopened because this seems easy enough to fix, even if the answer is to just document the inclusion of scripthost in libs.

@kitsonk
Copy link
Member

kitsonk commented Sep 13, 2017

Added to the wiki.

@kitsonk kitsonk closed this as completed Sep 13, 2017
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

4 participants