Cannot read property `node` of undefined
See original GitHub issue(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:
-
What version of bluebird is the issue happening on?
3.5.2
-
What platform and version? (For example Node.js 0.12 or Google Chrome 32)
React Native 0.57
-
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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
See this commit.
https://github.com/petkaantonov/bluebird/pull/1576/commits/28683161d1fcb21524942e6ae44a2e2cfdfc6074
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)Here is the fix for this
https://github.com/petkaantonov/bluebird/pull/1576