Skip to content

Log a warning or fail hard when unexpected-react is imported after react #63

Description

@salomvary

The documentation clearly states that "The order of require's is important. unexpected-react must be required before react is required."

However if one requires/imports them in the wrong order, instead of failing with a meaningful error message, unexpected-react will start failing with weird assertion errors which might result in several hours long headscratching sessions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions