After a reload my app has stopped loading.
I have tried on both emulators and 2 real devives, android and ios.
The error is:
Error: Unabl
This can also be caused if you install a dependency, but forget to install other dependencies needed for that dependency. For example, I installed react-native-push-notification, but forgot to install PushNotificationIOS, and I got an identical error.
In case anyone is still struggling with this, I tried all of the above without success as well as some suggestions from the GitHub page.
What worked for me was updating the Expo CLI, I was on v38 and updated to 40, updating it fixed the problem.
npm install -g expo-cli
Edit: Spoke too soon. It fixed it, then a couple of hours later it was broken again.
Solved it for me in two ways:
First I simply removed the sourceMappingURL
from the mentioned files,
as these seemed to raise the error (build problems?).
But as I had to redo this on any package update / addition (which got quite annoying, as you might have guessed ; ), I was quite happy that @react-native-community/cli-debugger-ui
v4.7.0
has been released yesterday!
So I quickly added the following to my package.json
:
"resolutions": {
"@react-native-community/cli-debugger-ui": "4.7.0"
}
Now, after deleting yarn.lock
, running npx react-native-clean-project
(the same could have been accomplished by deleting node_modules
, cleaning the individual builds & pods, but react-native-clean-project
is so much neater % ) & running yarn
again, the problem was gone.
(Be sure to remove the resolution, when RN updates again...)
Reference: https://github.com/react-native-community/cli/issues/1081#issuecomment-614223917
I have also the same probleme this is whath I did
You have two way
try running npm start -- --reset-cache
so that the bundler is cache is reset
or click reload
from the chrome debugger window, which reloads the app in debugger mode on the simulator for you
I resovled this error by removing node modules + yarn.lock in project
I just had the same issue and I tried all the answer above, for some strange reasons none worked for me. But here is what worked for me.
- Delete the package-lock.json
and/or yarn-lock.json
- run npm i
it worked like magic. it worked for me, it might not work for you but at least give it try. #cheers