Skip to content

Cannot find name 'AsyncIterator' when running Angular+Apollo example #7

Open
@nick-lehmann

Description

@nick-lehmann

After registering and downloading the Angular+Apollo example, the following error occurs during the build process:

ERROR in /Users/nicklehmann/Desktop/quickstart-with-apollo/node_modules/@types/graphql/subscription/subscribe.d.ts (17,4): Cannot find name 'AsyncIterator'.
ERROR in /Users/nicklehmann/Desktop/quickstart-with-apollo/node_modules/@types/graphql/subscription/subscribe.d.ts (29,4): Cannot find name 'AsyncIterable'.

npm install run just fine and did not throw any errors. A very similar issue with the same error messages was posted here. However, the proposed solution to downgrade to node 6.0 did not work.

Tested on macOS Sierra (10.12.6) with latest version you can get (installed nvm afterwards, so to figure out which exactly) and 6.0.

This workaround seems to have helped some people.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions