You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[async] Cannot read property 'members' of undefined #3978
instead of giving the "only available in ES6" warning, it throws this exception:
throw e;
^
TypeError: Cannot read property 'members' of undefined
at resolveDeclaredMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15429:65)
at resolveTypeReferenceMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15459:26)
at resolveStructuredTypeMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15665:21)
at getPropertiesOfObjectType (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15673:24)
at propertiesRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:17141:34)
at objectTypeRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:17107:30)
at isRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16935:34)
at checkTypeRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16824:26)
at checkTypeAssignableTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16797:20)
at isTypeAssignableTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16791:20)
nino-porcino (@nippur72): TypeScript 1.5.3 does not contain support for Async Functions, and I cannot seem to repro this in master. It's possible a recent unrelated change may have fixed this. Is it possible you were using a different version of the compiler than the one you mentioned above? Can you verify the version of the compiler you are using, or possibly verify this against a recent nightly build?
The following compiles (unfortunately there's no awaiting mechanism):
asyncfunctionabcd(){console.log('abcd');}abcd();
D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:35252
throw e;
^
TypeError: Cannot read property 'members' of undefined
at resolveDeclaredMembers (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:15607:65)
at resolveTypeReferenceMembers (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:15637:26)
at resolveStructuredTypeMembers (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:15870:21)
at getPropertyOfType (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:16002:32)
at checkPropertyAccessExpressionOrQualifiedName (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:19993:24)
at checkPropertyAccessExpression (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:19978:20)
at checkExpressionWorker (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:22117:28)
at checkExpression (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:22068:42)
at resolveCallExpression (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:20919:28)
at getResolvedSignature (D:\projects\sach\node_modules\electrolyte\node_modules\typescript\lib\typescript.js:21088:47)
Activity
rbuckton commentedon Aug 4, 2015
nino-porcino (@nippur72): TypeScript 1.5.3 does not contain support for Async Functions, and I cannot seem to repro this in master. It's possible a recent unrelated change may have fixed this. Is it possible you were using a different version of the compiler than the one you mentioned above? Can you verify the version of the compiler you are using, or possibly verify this against a recent nightly build?
mhegazy commentedon Aug 4, 2015
nino-porcino (@nippur72) can you try using latest `typescript@next?
nippur72 commentedon Aug 5, 2015
Mohamed Hegazy (@mhegazy) Ron Buckton (@rbuckton) I've checked with
typescript@nextand the bug is gone, so I'm closing this.(P.S. I was sure it was 1.5.3, but as you've said it couldn't be, so more likely I had something greater than 1.5.3).
mhegazy commentedon Aug 5, 2015
thanks nino-porcino (@nippur72) for confirming.
jsen- commentedon Aug 20, 2015
I think the issue is not yet gone.
I'm using
typescript 1.6.0-dev.20150819withexperimentalAsyncFunctionsenabled, targettinges6The following code seems to trigger the error:
or
The following compiles (unfortunately there's no awaiting mechanism):
iojs versions:
nippur72 commentedon Aug 20, 2015
Yes the issue is back, I re-discovered it yesterday in 1.6 nightly, so I'm reopening it.
rbuckton commentedon Aug 28, 2015
This is now fixed for 1.6.