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.

TypeError: Cannot read property 'row' of undefined

See original GitHub issue
TypeError: 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:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

3reactions
jkeencommented, Apr 10, 2017

I’m also getting this error. I’m using it inside a promise chain as well, and it stops between 7425-8200 every time.

1reaction
acidjazzcommented, Jun 19, 2017

/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)

Read more comments on GitHub >

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

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