Closed wuqiuhao closed 6 years ago
I get the same error in Nuclide. Debugging in Chrome works fine.
get the same error in Nuclide
I debugging in Chrome also have some problem!
What the fuck hell is this?? Sent from my BlackBerry 10 smartphone. From: joey3060Sent: Thursday 25 August 2016 11:43 AMTo: facebook/nuclideReply To: facebook/nuclideSubject: Re: [facebook/nuclide] Uncaught TypeError: Cannot read property 'ref' of undefined (#673)get the same error in Nuclide
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/facebook/nuclide","title":"facebook/nuclide","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/facebook/nuclide"}},"updates":{"snippets":[{"icon":"PERSON","message":"@joey3060 in #673: get the same error in Nuclide"}],"action":{"name":"View Issue","url":"https://github.com/facebook/nuclide/issues/673#issuecomment-242290393"}}}
Same issue, works great in Chrome but fails w/ Nuclide debugger
get the same error in Nuclide
SAME
same i got also this same error.
This is happening on node v6.5.0. The error went away after rolling back to v4.5.0...
OSX v10.11.6 Chrome Version 52.0.2743.116 (64-bit) node v6.5.0 node-inspector@0.12.8
Sorry everybody 😞
Looks like this is an issue with node 6. For now, you can just point Nuclide to 5.x by changing the "Path to Node Executable" setting under "React Native" in the Nuclide settings (nuclide-react-native.pathToNode
).
I got the same error in node-inspector as well
I got the same error with node-inspector, by now the downgrade of nodejs to v6.3.1 version fix the issue to me.
CHanging the path to node 5.4.x didn't work for me
v6.3.1 works for me
Thanks @IamAlchemist , I'll give it a try. This bug forced me over to React Native Debugger though. It works great.
Issue can be fixed by rolling back node to v4.5.0
I got the same error in Nuclide
This is happening on node v6.5.0. The error went away after rolling back to v4.5.0...
As per my tests, the error occurs with node version above v6.3.0 on server running nuclide-start-server.
It's happening on node v7.0.0 to.
Rollback to node 6.1.0 fixes the issue. 6.9.1 LTS caused it for me.
There's a PR open on node-inspector
https://github.com/node-inspector/node-inspector/pull/932
i think nuclide needs to use this to solve the issue
Has this been addressed?
It's happening on node v7.1.0 to.
This should have been addressed in the PR that was just accepted..
The issue was with node-inspector, since that project it looks dead, I took an open PR that fixed the problem and updated that library here.
But my long term suggestion is to re-write this without node-inspector, using the inbuilt node debugger instead
We're actually going to be switching to using JSC instead of node soon. That way it'll be more like the actual environment.
This error disappears on Node v6.3.1, but breakpoint on atom/nuclide does not work. Breakpoint works on node4-lts or 4.6.2. If you want to use atom/nuclide to debug react-native project, you have to use node4-lts or 4.6.2.
can work around it by changing line 111 of /xxxx/xxxx/xxxx/node-inspector/lib/InjectorClient.js:111 from
cb(error, NM[0].ref); to
if (NM.length > 0)
cb(error, NM[0].ref);
@littlegoofey Thanks for your solution. I think we can change line 111 of ~/.atom/packages/nuclide/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
to
cb(error, NM.length==0 ? null : NM[0].ref);
I can debug React-Native project with Atom/nuclide now. Can't believe it's been broken for so long time.
We're included a better RN and Node debugger integration in Nuclide, so, these issues are fixed.
[Enter steps to reproduce below:] I use Atom1.9.9 + nuclide edit React Native. I want to debug in Atom,but show this error.
Atom Version: 1.9.9 System: Mac OS X 10.11.6 Thrown From: nuclide package, v0.163.0
Stack Trace
Uncaught TypeError: Cannot read property 'ref' of undefined