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 'length' of undefined

See original GitHub issue

Hi,

Bummed I cannot use this. I was looking forward to it.

Could you please help?

Thanks!

gj@DESKTOP-MH9OVO5:~/.bible/en$ bible --lang en 'John 3:16'
Reference: John 3:16
/usr/local/lib/node_modules/bible/node_modules/bible.js/lib/index.js:97
                    for (var i = 0; i < verses.length; ++i) {
                                               ^

TypeError: Cannot read property 'length' of undefined
    at /usr/local/lib/node_modules/bible/node_modules/bible.js/lib/index.js:97:48
    at request (/home/gj/.bible/en/lib/index.js:22:24)
    at maybeCallback (/home/gj/.bible/en/node_modules/jsonrequest/lib/index.js:57:24)
    at Function.<anonymous> (/home/gj/.bible/en/node_modules/tinyreq/lib/index.js:58:9)
    at res (/home/gj/.bible/en/node_modules/assured/lib/index.js:27:12)
    at IncomingMessage.<anonymous> (/home/gj/.bible/en/node_modules/tinyreq/lib/index.js:101:13)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
IonicaBizaucommented, Jul 7, 2020

The easiest way to get the fix is:

rm -rf ~/.bible
bible --lang en 'John 3:16'
0reactions
Ivl-Nunezcommented, Jul 7, 2020

Thanks, working great now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'length') - TrackJS
TypeError is a subset of JavaScript Error that is thrown when code attempts to do something that does not exist on the target...
Read more >
Typeerror: Cannot Read Property 'length' of Undefined
A typeerror length of undefined can indicate that the actual type of an operand is different from the expected type. This error can...
Read more >
Cannot read properties of undefined (reading 'length') in JS
The "TypeError: Cannot read properties of undefined (reading 'length')" error occurs when accessing the length property on an undefined value. To solve the ......
Read more >
[SOLVED] Cannot Read Property 'length' of Undefined in JS
To fix the “cannot read property 'length' of undefined” error, perform an undefined check on the variable before accessing the length property ......
Read more >
Cannot read property length of undefined - Stack Overflow
The error means that what ever element is returned by getElementById('WallSearch') , it does not have a value property. Every form field has...
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