Skip to content

Issue with React Native and Expo running on web #1549

Open
@jose920405

Description

@jose920405

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions