TypeError: Cannot read property 'row' of undefined
See original GitHub issueTypeError: Cannot read property 'row' of undefined
at WriteStream.<anonymous> (/Users/.../node_modules/node-progress-bars/index.js:34:14)
This error is thrown when I have multiple iterations that exceeds the number of opened files allowed, EMFILE
on mac.
reproduce:
const Progress = require('node-progress-bars')
const iterations = 15000
const prg = new Progress()
prg.total = iterations
for (let i = 0; i <= iterations; i++) {
prg.tick()
}
result:
node test.js
[βββββββββββββββββββββββββββββββ] 8783/15000 59% 11.9s 20.3s
for me it stops at around 8800
The error is not thrown in this example, for me it is thrown when I use it inside a Promise chain.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
TypeError: Cannot read property 'rows' of undefined
Yet, for anyone interested, here is the advice of the first answer put into practice, it works, the "rows" error disappears, but that...
Read more >`Cannot read property 'rows' of undefined` when aliasing ...
Executing SELECT 1 as " "; in 0.38.0 returns a javascript error Cannot read property 'rows' of undefined . Hi, we recently did...
Read more >Cannot read property 'row' of undefined" error - DataTables
Im trying to update cell based on a dropdown value as below. but i keep getting "Uncaught TypeError: Cannot read property 'row' of...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Cannot read properties of undefined (reading 'rows')
hi @flamber and happy new year. I'm getting a similar error. "Cannot read properties of undefined (reading 'rows')" In our case - strange...
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 Free
Top 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
Iβm also getting this error. Iβm using it inside a promise chain as well, and it stops between 7425-8200 every time.
/home/ec2-user/waa/node_modules/ascii-progress/index.js:442 this.cursor.moveTo(this.savePos.row, this.savePos.col); ^
TypeError: Cannot read property βrowβ of undefined at ProgressBar.terminate (/home/ec2-user/waa/node_modules/ascii-progress/index.js:442:34) at ProgressBar.snoop (/home/ec2-user/waa/node_modules/ascii-progress/index.js:423:10) at ProgressBar.tick (/home/ec2-user/waa/node_modules/ascii-progress/index.js:162:8) at ProgressBar.update (/home/ec2-user/waa/node_modules/ascii-progress/index.js:170:8) at EventEmitter.uploader.on (/home/ec2-user/waa/operations/aeonian.js:200:11) at emitNone (events.js:86:13) at EventEmitter.emit (events.js:185:7) at EventEmitter.<anonymous> (/home/ec2-user/waa/node_modules/s3/lib/index.js:1168:14) at emitNone (events.js:86:13) at EventEmitter.emit (events.js:185:7)