-
Notifications
You must be signed in to change notification settings - Fork 47
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
react-native throw Error when importing asap #64
Comments
Any update on that? |
For anyone else who finds this issue because react is complaining about asap. I was able to fix it using rn-nodeify . |
Just ran into same issue on Meteor when importing react-dnd, which imports asap |
ASAP does depend on your module loader to respect the "browser" field in "package.json", per the behavior codified by Browserify. Please direct your questions and reference this ticket to the maintainers of your module system of choice. Thank you for chiming in @DanBeard. That’s one expected mitigation. |
Fixed this by running |
I was able to fix this by running |
@andfaulkner I'm using yarn so that's not obvious (and should not work) but it does! |
I installed yarn after create the project then start get some warnings while I tried to install anything. So I uninstalled it and when tried to run "react-native run-ios" and got Error: Cannot find module 'asap/raw'. Thanks |
react-native throws
I see that asap generated for react-native differs from that in a browser: raw.js has this line of code in it:
require('domain')
, which throws.The text was updated successfully, but these errors were encountered: