Closed astroana closed 4 years ago
Hi, @astroana
Looks like the Metro server uses cached files from previous build. Try to close your terminal with the Metro server and start React Native build process from scratch.
Execute those commands in your terminal:
watchman watch-del-all && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-*
cd android && ./gradlew clean && ./gradlew cleanBuildCache
cd ../
npm run android
or yarn android
Hope that it will be helpful.
I just did and even remove all the cache files inside drive c:/user folder and still the result is the same. I tested the RNChat sample first to make sure. My other projects works fine after running yarn android. I don't think it's the metro server caches because when I ran yarn android on RNchat sample my terminal doesn't show any errors on gradle nor having issue installing the app and Build is always successfull.
but same error on the app appears, the errors I posted above.
NodeJS ver. 12
The app.json file does not exist in the RNChat.
name and displayName imports from config.json.
I had been getting the same errors after switch between different projects. Cleaning of all caches had been helping.
I can't reproduce the issue.
Try to clean ~/.npm/_cacache
and /.react-native-cli/cache
.
I already did, tried installing android studio and gradle and nodejs to a new pc. but no luck.
Don't know why the errors still appear only with RNChat.
Do have import ... from "./src/services"
or import ... from "app.json"
in your ~/RNChat/index.js ?
https://github.com/ConnectyCube/connectycube-reactnative-samples/blob/master/RNChat/index.js
I just cloned the sample git repo and I did not change anything inside RNChat because I am just trying to test the repo as is, same with RNVideo which works fine without any errors.
Does the issue still present?
I suggest you to ask React Native team by few reasons:
Hello, I am new to connectycube and I am just trying out the samples. the video calling sample works fine, but the chat sample is having error and looking for app.json file and navigator inside src.
I created an app.json then after that another error message looking for this:
and also this