Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property node of undefined #1563

Closed
jefflewis opened this issue Nov 2, 2018 · 6 comments
Closed

Cannot read property node of undefined #1563

jefflewis opened this issue Nov 2, 2018 · 6 comments

Comments

@jefflewis
Copy link

(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)

Please answer the questions the best you can:

  1. What version of bluebird is the issue happening on?
    3.5.2

  2. What platform and version? (For example Node.js 0.12 or Google Chrome 32)
    React Native 0.57

  3. Did this issue happen with earlier version of bluebird?
    Unknown

(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)

When starting my React Native app with remote debugging on, I get this error from Bluebird as it attempts to check the process' version number:

bluebird.js:5637:35

var version = process.versions.node.split(".").map(Number);

When I disable remote debugging, the app works as expected. Remove the package that depends on Bluebird also re-enables the remote debugging feature.

@mlostekk
Copy link
Contributor

mlostekk commented Nov 14, 2018

Same here! It works with the in-chrome debugger and with the standalone react-native-debugger.

But it does not work with the built in VSCode debugger

@mlostekk
Copy link
Contributor

Here is the fix for this

#1576

@rafaismyname
Copy link

Hey @mlostekk i'm facing the same issues trying to debug RN trough VSCode :(

How did you managed to solve this issue?

Best!

@mlostekk
Copy link
Contributor

See this commit.

2868316

in the release from NPM you have to adjust this part in the file node_modules/js/browser/bluebird.js near the very end (in my case line number 5636)

@rafaismyname
Copy link

@mlostekk thank you so much!

it's funny (and scary) that the only solution for this now is editing the node_module...

what would be the library using the outdated version of bluebird resulting into this exception? maybe we could find it and pull request the fix for it for a proper solution...

thx!!!

@mlostekk
Copy link
Contributor

mlostekk commented Mar 13, 2019

Well, its already fixed (#1576) but @petkaantonov needs to trigger a release and seem to be not available at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants