question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native throw Error when importing asap

See original GitHub issue

react-native throws

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

44reactions
andfaulknercommented, Nov 13, 2018

I was able to fix this by running npm install in the project root directory.

1reaction
gtsasilcommented, Nov 22, 2018

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.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native throwing unexpected token error on import ...
React-native is throwing an unexpected token in a firebase import statement. I have been trying to fix this for a long time.
Read more >
Working with the ASAP SDK for React Native - Zoho Cares
import { ZDPortalCommunity } from 'react-native-zohodesk-portal-sdk'; ZDPortalCommunity.show();. To show the Tickets List, use the following code snippet.
Read more >
AppRegistry - React Native
import {Text, AppRegistry} from 'react-native'; ... the function being executed by taskProvider should wrap up and return ASAP.
Read more >
Troubleshooting common React Native bugs - LogRocket Blog
This troubleshooting guide shares how to easily find and address common React Native bugs. See common error examples.
Read more >
React Native AsyncStorage - Asap developers
Let's import it and try it out. As a first approach, we will store a hardcoded key-value pair, then close the app and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found