Skip to content

iOS: Connection to development server frequently lost? #12786

@ABleas

Description

@ABleas

On device refresh (shake device > reload), the error "Could not connect to development server" occasionally shows up. At other times, reloading doesn't update the live app, even when code has changed, but no error is thrown.

If I try to run a new server with npm start, it reports that there is already a development server running. I have to stop the server and rerun the app before this resolves.

I was under the impression that we don't need to change jsCodeLocation any more, as those instructions we removed from documentation, and running live through the device works with a fresh RN project.

It happens every hour at least. I can't reliably reproduce it.

Additional Information

Currently using the following modules:

    "lottie-react-native": "1.0.5",
    "react": "15.4.1",
    "react-native": "^0.41.2",
    "react-native-blur": "^2.0.0",
    "react-native-datepicker": "^1.4.2",
    "react-native-maps": "0.13.0",
    "react-native-scrollable-tab-view": "^0.7.2",
    "supercluster": "^2.3.0"

I'm also using a CocoaPods workspace to load google maps dependencies not included with iOS.
This is untested on Android, so just an iOS issue.
Developing on MacOS Sierra 10.12.2.

I realize this may be a troubleshooting issue for my setup but as the instability only began after RN^40, I'm wondering, am I alone with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions