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

See original GitHub issue

Node v6.9.1 Windows 10 x64

app.js:

var i = 0;

setInterval(function () {
  console.log(i++);
}, 1000);

cmd:

C:\localhost\taxi>node-debug app.js

Node Inspector v0.12.8
Visit http://127.0.0.1:8080/?port=5858 to start debugging.
Debugging `app.js`

Debugger listening on [::]:5858
C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.js:111:
22)
    at C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\DebuggerClient.js:121:7
    at Object.value (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\callback.js:23:20)
    at Debugger._processResponse (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1026:11)
    at TCP.onread (net.js:569:26)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:27
  • Comments:21

github_iconTop GitHub Comments

8reactions
roysGcommented, Dec 24, 2016

Any update?

5reactions
EricFortincommented, Nov 18, 2016

Me too with 6.9.1 on Linux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'ref' of undefined - Stack Overflow
I'm building a simple web app with Vue + Firebase + Vuefire and I get "Uncaught TypeError: Cannot read property 'ref' of undefined"...
Read more >
Uncaught Type Error: cannot read property $ref of undefined
It occurred after generating my Swagger resources via swagger-php: Uncaught TypeError: Cannot read property '$ref' of undefined ...
Read more >
Cannot read properties of undefined (reading createRef)
Hello guys, I am developing pluggable widget, but facing this error. If anyone is having any solution upon this please provide me.
Read more >
Refs is not there (Cannot read properties of undefined ... - Reddit
function() executes in the context it's called. That means this.$refs is not defined. Either use an arrow function or assign this.$refs to ...
Read more >
Cannot read property 'ref' of undefined Firebase-storage react ...
Coding example for the question TypeError: Cannot read property 'ref' of undefined Firebase-storage react-Reactjs.
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