In my case, this issue started when I configured Reactotron in my rn expo project. I just commented on the import of the ReactotronConfig file when I need to test on web.
ReactotronConfig