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.

Issue while running npm run android

See original GitHub issue

The development server returned response error code: 500

URL: http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false

Body: {“from”:“C:\Users\UserName\my-project\src\Screens\First.js”,“to”:“theme”,“message”:“Unable to resolve module theme from C:\\Users\\UserName\\my-project\\src\\Screens\\First.js: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.”,“name”:“UnableToResolveError”,“type”:“UnableToResolveError”,“errors”:[{}]} processBundleResult BundleDownloader.java:170 access$100 BundleDownloader.java:39 onResponse BundleDownloader.java:139 execute RealCall.java:135 run NamedRunnable.java:32 runWorker ThreadPoolExecutor.java:1167 run ThreadPoolExecutor.java:641 run Thread.java:764

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
uasaigolicommented, May 31, 2018

Issue resolved after replacing following line -

import { colors } from ‘theme’; with import { colors } from ‘…/Utils/theme’;

changed were in 15-16 files

0reactions
github-actions[bot]commented, Jun 13, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run android does not launch the Android app
I've tried running/building/clean&rebuilding from android studio. This led to Could not connect to development server when I refreshed from the ...
Read more >
Setting up the development environment - React Native
Run the following command to create a new React Native project called "AwesomeProject": npm; Yarn. npx create-expo-app AwesomeProject
Read more >
Build and run your app - Android Developers
Learn how to quickly build and run your app on the Android emulator or a physical device.
Read more >
Addressing common errors in React Native - LogRocket Blog
When an error is detected by the compiler when running the code, it terminates the ... The command for the above is npm...
Read more >
@react-native-community/slider - npm
When creating an issue please remember to specify the platform which the issue occurs on. Running the example app. While developing, you can...
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