Issue while running npm run android
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Issue resolved after replacing following line -
import { colors } from ‘theme’; with import { colors } from ‘…/Utils/theme’;
changed were in 15-16 files
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.