i somehow managed to break my expo project. i installed a npm package (redux-thunk), added some lines in my root component - now it is stuck at „downloading JavaScript bundle 100.0%“; no errors.
i did a git hard reset, rm -rf node_modules, updated to sdk 21, tried it both on simulator and device via tunnel and lan, xde and cli.
any advice on what might cause this is highly appreciated, thank you!!
Did you try to remove that some line of codes you added in and see your problem still persist? if the problem is solved, that some line of codes is the source of error.
This is most likely some kind of infinite loop that your app is getting itself into.
I would definitely strip your app down to it’s barebones – just render a small thing at the root. Gradually add back components and basically perform a binary search across your codebase for the issue (adding logs anywhere you might need).
skevy, thank you. rebuilding it bit by bit led me to the line that was causing the loop. still not sure what the actual problem is (line is just a simple async function), but i’ll figure it out. cheers
I 've done pretty much everything and still, expo gives me hard times with being stuck on “Downloading JavaScript bundle 100.0%”.
I am gradually losing my mind and tremendously frustrated. Help! Any ideas?
I tried to uninstall expo and then reinstall it but no luck, I also tried to uninstall node and reinstall everything but still no luck even I tried creating a blank new project in expo and then serve it but it still not working
Please help!
I haven’t had time to work on any of my Expo apps lately but a few days ago I updated expo-cli and also various other stuff from Homebrew and after that was getting some weird behaviour from watchman.
See if you have a watchman process running, possibly using up a large amount of CPU. Try killing it to see if that makes a difference. When I killed watchman I got an error printed to the console which was something about falling back to a different method and then things suddenly worked. But unfortunately I wasn’t able to actually figure out what was wrong with watchman or how to fix it permanently.
watchman is something that expo (or Metro bundler?) runs automatically to watch which of your files have changed while you are developing.
Are you running macOS? Or Windows? I am not sure that Expo uses watchman on anything other than macOS.
If you’re running macOS you should be able to find watchman by starting the Activity Monitor (in /Applications/Utilities), selecting it and clicking on the octagonal “x” button on the top left.
I am using in window 10, I don’t know why and how this error was occur to me but now it’s automatically suddenly working. I am thankful to you for your valuable response.
Hey did you figure it out, I too have tried everything… i faced this issue a week back, started working randomly after a day and now I’m stuck again for the past 3 days…