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

Intern and leadfoot cause error TS2307: Cannot find module 'dojo/Promise'. #141

Open
davewilton opened this issue Nov 17, 2017 · 0 comments

Comments

@davewilton
Copy link
Contributor

This definitely used to work, so I'm not sure what is going on here. I have referenced the typings for dojo & intern in a tsd.d.ts which looks like this:

/// <reference path="node_modules/dojo-typings/custom/intern/intern.d.ts" />
/// <reference path="node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts" />

/// <reference path="node_modules/dojo-typings/dojo/1.11/index.d.ts" />
/// <reference path="node_modules/dojo-typings/dojo/1.11/modules.d.ts" />
/// <reference path="node_modules/dojo-typings/dojo/1.11/promise.d.ts" />
/// <reference path="node_modules/dojo-typings/dijit/1.11/index.d.ts" />
/// <reference path="node_modules/dojo-typings/dijit/1.11/modules.d.ts" />
/// <reference path="node_modules/dojo-typings/dojox/1.11/index.d.ts" />
/// <reference path="node_modules/dojo-typings/dojox/1.11/modules.d.ts" />

/// <reference path="node_modules/dojo-typings/custom/dgrid/1.1/dgrid.d.ts" />
/// <reference path="node_modules/dojo-typings/custom/dstore/1.1/dstore.d.ts" />

Whenever I build I get the following error

C:\temp\InternIssue>node "C:\temp\InternIssue\node_modules\typescript\bin\tsc"
node_modules/dojo-typings/custom/intern/intern.d.ts(7,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/intern/intern.d.ts(48,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/intern/intern.d.ts(73,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/intern/intern.d.ts(129,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/intern/intern.d.ts(144,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/intern/intern.d.ts(277,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts(358,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts(422,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts(1664,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts(2237,27): error TS2307: Cannot find module 'dojo/Promise'.
node_modules/dojo-typings/custom/leadfoot/leadfoot.d.ts(2366,27): error TS2307: Cannot find module 'dojo/Promise'.

C:\temp\InternIssue>node "C:\temp\InternIssue\node_modules\typescript\bin\tsc" -v
Version 2.2.2

I rolled back to 2.2.2 because I know it used to work back then. My tsconfig looks like this:

{
  "compileOnSave": true,
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
    },
    "module": "amd",
    "moduleResolution": "node",
    "target": "es5",
    "noImplicitAny": false,
    "sourceMap": true
  }
}
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