Development/Typescript

[Typescript] AsyncIterator, AsyncIterable 오류 발생시

StudyGPT 2023. 12. 23.

이슈

[0] node_modules/@types/graphql/subscription/subscribe.d.ts(17,12): error TS2304: Cannot find name 'AsyncIterator'.
[0] node_modules/@types/graphql/subscription/subscribe.d.ts(29,12): error TS2304: Cannot find name 'AsyncIterable'.

 

 

해결

tsconfig.json 파일에 esnext.asynciterable 추가.

 

댓글