-
-
Notifications
You must be signed in to change notification settings - Fork 736
Cannot find name 'Promise'. ( error) #327
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
Comments
Are you using TS 2.0 and specifying the |
Exactly.... |
Same problem here, but we are targetting ES5. Seems that happened since using @types in an Angular 2 project. |
So is there a workaround, or do we just wait....? |
ok, workaround for now is to have the tsconfig have a target of 'es6' when generating files with TypeDoc. So basically using a different tsconfig for typeDoc then for actual code generation. |
This is still happening, even when targeting ES6:
Yes. I do have the |
Same problem here as well, although I can kind of get around it by ignoring the compiler errors:
It ain't pretty, but the docs get generated. |
…g/typedoc#327) - no other way to get around this at the moment
I suspect this is due to using an older version of TypeDoc than your project uses - with 0.17 TypeDoc moved to a peer dependency and this should not longer be an issue. Please open a new issue if you are having compile errors when using TypeDoc but not when compiling with tsc. |
Uh oh!
There was an error while loading. Please reload this page.
I am running
typedoc --out ./docs --target ES6 --includeDeclarations ./src
and I get a number of "Cannot find name 'Promise'." errors. What am i missing?
I am using TypeDoc 0.5.1
The text was updated successfully, but these errors were encountered: