Skip to content

invariant is not defined #60

Open
Open
@pachewise

Description

@pachewise

Getting an "invariant is not defined" error in one of our production builds (while we were testing it). Looking at the stack trace, it led us to your library, which we just upgraded 2.1.0 -> 2.2.0.

image

Which led us to

invariant(
false,
'ImmutablePropTypes type checking code is stripped in production.'
);

Is there a reason why invariant isn't imported here?

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