dojo / dojo/typings

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

Open
#141 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
29
Forks
35
PR merge metrics
No merged PRs in 30d

Description

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:

```
///
///

///
///
///
///
///
///
///

///
///
```
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
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.