angular: facade/promise.d.ts errors on typescript@1.8.0
This commit to TypeScript seems to have caused problems on the first line of promise.d.ts
complaining that Promise
cannot be exported as it is not defined in this file:
ERROR in [default] /path/to/project/node_modules/angular2/src/facade/promise.d.ts:1:9
Cannot re-export name that is not defined in the module.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 58 (19 by maintainers)
Commits related to this issue
- feat(facade): translate the Promise type without explicit export Needed for https://github.com/angular/angular/issues/6468 — committed to dart-archive/ts2dart by alexeagle 8 years ago
- ci(typescript) add typescript_next build Fixes #6468 Fixes #6368 — committed to alexeagle/angular by alexeagle 8 years ago
- ci(typescript) add typescript_next build Fixes #6468 Fixes #6368 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- feat(facade): translate the Promise type without explicit export Needed for https://github.com/angular/angular/issues/6468 — committed to dart-archive/ts2dart by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
- fix(typing): Remove re-export of the Promise built-in type. Instead, ts2dart can add the 'dart:async' import whenever Promise is used. Fixes #6468 — committed to alexeagle/angular by alexeagle 8 years ago
I solve this problem by adding
declare var Promise: PromiseConstructor;
on the top ofpromise.d.ts
invalid link #17071 @x-friday
Same issue with typescript 1.7.1, angular 2.0.0-beta1 et rxjs 5.0.0-beta.1, solved with @sicaner’s solution.
I have the same error, What is solution?
@MattDHill do
npm install angular2@latest --save
. The result you get sounds to be npm version itself. After you do that you can see in package.json the version installed.@JosephWoodward I wish that TS compiler distinguished “real” errors from mere warnings.
It doesn’t. This bombs the CI process. Needs to be fixed and soon.