Logout from expo-cli and log in again
The issue seemed to be caused by axios. I have tried everything. I mean everything.
Removed all api calls, no help.
Reinstall expo, no help.
Reinstall expo-cli, no help.
I have almost started pulling my hair and then out of thin air I have come up with this idea which is explained down below.
I am not sure but I think this error was caused because I have left the expo-cli open.
I won't dive deep into the details here because I am mostly certain that this error is because of expo-cli itself.
Well, I have found some solutions for the issue but non of them worked for me.
Here's how I solved the issue
Just log out from expo-cli and log in again. That's just it
From here you need to hit
s to log out.
Then you can hit
s to log in again.
Now you won't get the same error.
That was the solution for me. If you have any better ideas or solutions, feel free to write down below.
Level up every day