با سلام
مشکلی که به وجود اومده اینه که با وجود نصب بودن و وجود داشتن پوشه ی پکیج های مختلف در node_modules، ری اکت نیتیو نمی تونه اونها رو از ناد ماژولز بخونه. مشکل از چی می تونه باشه؟
ارور اندروید:
The development server returned response error code: 500
URL: http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false
Body:
{"from":"/Users/pouya/Documents/Projects/foodloopapps/FoodLoop/App.js","to":"native-base","message":"Unable to resolve module native-base
from /Users/pouya/Documents/Projects/foodloopapps/FoodLoop/App.js
: Module does not exist in the module map or in these directories:\n /Users/pouya/Documents/Projects/foodloopapps/FoodLoop/node_modules\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 Metro Bundler cache: rm -fr $TMPDIR/react-*
or npm start -- --reset-cache
.","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]}
processBundleResult
BundleDownloader.java:225
access$100
BundleDownloader.java:40
onResponse
BundleDownloader.java:192
execute
RealCall.java:135
run
NamedRunnable.java:32
runWorker
ThreadPoolExecutor.java:1112
run
ThreadPoolExecutor.java:587
run
Thread.java:841
ارور ای او اس:
The development server returned response error code: 500
URL: http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false
Body:
{"from":"/Users/pouya/Documents/Projects/foodloopapps/FoodLoop/App.js","to":"native-base","message":"Unable to resolve module native-base
from /Users/pouya/Documents/Projects/foodloopapps/FoodLoop/App.js
: Module does not exist in the module map or in these directories:\n /Users/pouya/Documents/Projects/foodloopapps/FoodLoop/node_modules\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 Metro Bundler cache: rm -fr $TMPDIR/react-*
or npm start -- --reset-cache
.","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]}
processBundleResult
BundleDownloader.java:225
access$100
BundleDownloader.java:40
onResponse
BundleDownloader.java:192
execute
RealCall.java:135
run
NamedRunnable.java:32
runWorker
ThreadPoolExecutor.java:1112
run
ThreadPoolExecutor.java:587
run
Thread.java:841
منم این مشکل برام چند باری پیش اومد گاهی بخاطر اتصال گوشی همراه با سیمیلاتور اندروید بود که نمیتونست تشخیص بده این ارور رو میداد گاهی هم با ریبیلد کردن حل میشد
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟