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
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