reactotron icon indicating copy to clipboard operation
reactotron copied to clipboard

Issue with React Native and Expo running on web

Open jose920405 opened this issue 10 months ago • 3 comments

Describe the bug

My Project is currently running with an expo because I need support web for this app.

I installed reactotron in the latest version and ran it on mobile without any issues.

But then, when I tried to run on web. I started receiving the following error when trying to build the app.

Unable to resolve "../Utilities/Platform" from "node_modules/react-native/Libraries/LogBox/LogBox.js"

I thought this was because I needed to add a condition to run this only for mobile. So i did the following

if (__DEV__ && Platform.OS !== 'web') {
  // eslint-disable-next-line @typescript-eslint/no-require-imports
  require("./ReactotronConfig");
}

But the error is still there.

Currently, the only way to get rid of this issue is by commenting this line:

require("./ReactotronConfig");

which means, removing the reactotron functionality. So, I'm currently commenting this line for web and uncommenting this line when I'm testing on mobile.

Reactotron version

^5.1.12

jose920405 avatar Mar 12 '25 16:03 jose920405

Any update on if there is a fix for this? I am seeing the same issue.

RobertOstermann avatar Apr 14 '25 22:04 RobertOstermann

Any update on if there is a fix for this? I am seeing the same issue.

Nothing

jose920405 avatar Apr 14 '25 22:04 jose920405

same issue

franamu avatar Jul 15 '25 15:07 franamu