react-native throw Error when importing asapSee original GitHub issue
Unable to resolve module domain from /Users/almas/Projects/Demo/node_modules/asap/raw.js: Unable to find this module in its module map or any of the node_modules directories under /Users/node_modules/domain and its parent directories
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.
- Created 8 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
I was able to fix this by running
npm install in the project root directory.
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’. To fix it I run npm install after read " @andfaulkner post.