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 set property 'prev' of undefined

See original GitHub issue
/home/substack/projects/kd-tree-store/node_modules/lru/index.js:33
            this.cache[this.tail].prev = null;
                                       ^

TypeError: Cannot set property 'prev' of undefined
    at LRU.remove (/home/substack/projects/kd-tree-store/node_modules/lru/index.js:33:40)
    at LRU.evict (/home/substack/projects/kd-tree-store/node_modules/lru/index.js:121:29)
    at LRU.set (/home/substack/projects/kd-tree-store/node_modules/lru/index.js:66:18)
    at build (/home/substack/projects/kd-tree-store/index.js:35:17)
    at write (/home/substack/projects/kd-tree-store/index.js:53:9)
    at build (/home/substack/projects/kd-tree-store/index.js:42:7)
    at write (/home/substack/projects/kd-tree-store/index.js:59:9)
    at /home/substack/projects/kd-tree-store/index.js:38:14
    at FSReqWrap.wrapper [as oncomplete] (fs.js:667:5)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mafintoshcommented, Mar 27, 2016

the crash was caused by the key 0 which we didn’t coerce into a string which made it falsy

0reactions
mafintoshcommented, Mar 27, 2016

should be fixed in 2.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript - cannot set property of undefined - Stack Overflow
I get the following error: Uncaught TypeError: Cannot set property 'greeting' of undefined. I'm trying to do something similar to an associative ...
Read more >
Uncaught TypeError: Cannot set property
In JavaScript if a variable has been declared, but has not been assigned a value, is automatically assigned the value undefined . Therefore,...
Read more >
How to solve the 'cannot set property of undefined' issue on ...
if a variable has been declared, but has not been assigned a value, is automatically assigned the value undefined . Therefore, if you...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined ... Undefined means that a variable has been declared but has not been assigned a...
Read more >
How to Fix 'cannot set properties of null' Errors in JS - Webtips
The "Uncaught TypeError: Cannot set properties of null (setting 'value')" error occurs in JavaScript, whenever you try to set a property on ...
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