question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]getting cannot find name AsyncGenerator while build

See original GitHub issue

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 ERROR in node_modules/exceljs/index.d.ts:1960:30 - error TS2304: Cannot find name 'AsyncGenerator'. 1960 [Symbol.asyncIterator](): AsyncGenerator<WorksheetReader>;

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

10reactions
abhijithcuaspirenxtcommented, Nov 6, 2020

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…

1reaction
abhijithcuaspirenxtcommented, Oct 15, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found