tagattie/FreeBSD-VSCode

Cannot find name 'AsyncIterator'. / esnext.asynciterable / es2018

Closed this issue · 2 comments

../../../../../../../node_modules/@types/graphql/subscription/subscribe.d.ts:17:4 - error TS2304: Cannot find name 'AsyncIterator'.

17 ): AsyncIterator;
~~~~~~~~~~~~~

../../../../../../../node_modules/@types/graphql/subscription/subscribe.d.ts:29:4 - error TS2304: Cannot find name 'AsyncIterable'.

29 ): AsyncIterable;
~~~~~~~~~~~~~

I'm not sure if changing to es2018 would fix it or be more correct.
But the tests needs asynciterable
test/smoke/tsconfig.json

@@ -12,6 +12,7 @@
                "sourceMap": true,
                "lib": [
                        "es2016",
+                       "esnext.asynciterable",
                        "dom"
                ]
        },

test/automation/tsconfig.json

@@ -10,6 +10,7 @@
                "declaration": true,
                "lib": [
                        "es2016",
+                       "esnext.asynciterable",
                        "dom"
                ]
        },

I can't seem to reproduce the error. Does the error occur with the latest version of the port (1.41.0) too?

With 1.41.0, there is no directory named graphql under vscode source directory.

Have not looked deeper into it, but perhaps just a thing local on my machine