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

[Feature request] Support react-native #1013

Closed
vespakoen opened this issue Feb 19, 2016 · 2 comments
Closed

[Feature request] Support react-native #1013

vespakoen opened this issue Feb 19, 2016 · 2 comments

Comments

@vespakoen
Copy link

  1. What version of bluebird is the issue happening on?
    3.3.1 (latest)
  2. What platform and version? (For example Node.js 0.12 or Google Chrome 32)
    React Native 0.20 (using react-native packager), node 5.4.1, npm 3.3.12
  3. Did this issue happen with earlier version of bluebird?
    Probably, yes

When bluebird is required inside of a react-native project, it crashes because it assumes when it is not running on node.js that it is running in a browser.

In react-native the document is not present and it throws an error.

@benjamingr
Copy link
Collaborator

@vespakoen can you please share the error and stack trace?

I think it's a platform we generally want to support.

@vespakoen
Copy link
Author

Ah, I had "Pause On Caught Exceptions" enabled, it seems to catch / handle it fine when I resume script execution.

My mistake (btw, it did seem to be an actual problem in the past: #550)

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

2 participants