Files such as package.json, package-lock.json, etc are missing.
If you are not comfortable with git, you can simply remove the “node_modules” folders from both your mobile and web folders, then zip them (mobile and server directories) and upload them to Dropbox or Google Drive.
When working with git, we add the node_modules folder to .gitignore since we can download these packages by running npm install.
PS: please zip them instead of rar, or put the whole folder on Dropbox.
Hey Sufian, can you please help me out with my code my backend is also not getting connected I am trying it since 3 days. I have attached below the link to my files. Please help me out
hey everyone so I was getting the Network Error before, and couldn’t figure out why it wasn’t working. I was able to use localhost and 127.0.0.1 (just learned they are the same thing) but as Mosh said, using localhost won’t work for android devices.
I then found a post in the React Native Developers discord channel where someone said that you can’t fetch from localhost because localhost is your own phone (if you try using localhost and running the app on your own physical iOS device, you’ll see that you still get the network error even though it works in the simulator). The same person who posted the above mentioned message then said that you need to use your computer’s LAN IP address. I had been using the IP address i found when I googled “what is my IP address” since I didn’t know there were different types/purposes.
After following the instructions on the following site (get your LAN IP address in MacOSX), and I have fixed the issue and can attest that using my LAN IP address allows my iOS simulator, iOS physical device, AND android simulator to successfully connect to my API.
As a reminder, you’ll have to use the LAN IP address in the baseURL in client.js in the client AND assetsBaseUrl in development.json in the API.
Hello, I have also tried searching for my IP address on google as I am a Windows user can you suggest to me a website where I can get exactly what I am looking for?
Well, I tried all of the possibilities, I used IPv6, './listings/, localhost.
I also downloaded the zipped files and tried them, every time I got “problem”: “NETWORK_ERROR”.
I don’t know Mosh why didn’t figured out a better solution for backend, as I see a lot of people has the same problem. Is there somebody who resolved the problem?
same problem here too…
read and implemented all the comments step by step… but no success… if someone has solved this problem please share here… will be gratefull…