[BUG]getting cannot find name AsyncGenerator while build
See original GitHub issueI am using exceljs@4.1.0 ,I am on node 12.12.0, angular “@angular/compiler”: “~8.2.5”,
I am getting this error
ERROR in node_modules/exceljs/index.d.ts:1960:30 - error TS2304: Cannot find name 'AsyncGenerator'. 1960 [Symbol.asyncIterator](): AsyncGenerator<WorksheetReader>;
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
[BUG]getting cannot find name AsyncGenerator while build
I am using exceljs@4.1.0 ,I am on node 12.12.0, angular "@angular/compiler": "~8.2.5", I am getting this error
Read more >TS2318: Cannot find global type 'AsyncIterableIterator' - async ...
I've experienced some compatibility issues when you mix typescript compiled async-gen code with babel's down-compile in a webpack bundle.
Read more >DataGrid - CSP Issues with the export and ExcelJS
I found the following opened GitHub issues where same problems are discussed: BUG getting cannot find name AsyncGenerator while build #1361 ...
Read more >AsyncGenerator - JavaScript - MDN Web Docs
The AsyncGenerator object is returned by an async generator function ... perform any cleanup tasks when combined with a try...finally block.
Read more >Async Generators and Async Iteration in Node.js - Alan Storm
we see that the former does not have a Symbol.iterator method, while the later does. $ node test-program.js generator: [Function: [Symbol.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try adding " “skipLibCheck”: true ", inside your tsconfig.json, and undo the comment and check whether it is working… , “” { “compileOnSave”: false, “compilerOptions”: { “baseUrl”: “./”, “outDir”: “./dist/out-tsc”, “sourceMap”: true, “declaration”: false, “moduleResolution”: “node”, “emitDecoratorMetadata”: true, “experimentalDecorators”: true, “allowSyntheticDefaultImports”: true, “target”: “es5”, “typeRoots”: [ “node_modules/@types” ], “lib”: [ “es2017”, “dom”, ], “skipLibCheck”: true, } } “” this is my tsconfig.json in the angular 7, i think it will works for you…
i have changed the type and typescript version to this=> “@types/node”: “^14.11.8”, “typescript”: “^3.2.4” and in the node_modules\exceljs\index.d.ts , I commented the lines showing error //Symbol.asyncIterator: AsyncGenerator<WorksheetReader>; and //Symbol.asyncIterator: AsyncGenerator<Row>;, that solved my problem , but its not the right way, I thing if the same done in that “https://github.com/exceljs/exceljs” it may effective to every one