react-immutable-proptypes icon indicating copy to clipboard operation
react-immutable-proptypes copied to clipboard

invariant is not defined

Open pachewise opened this issue 5 years ago • 0 comments

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

https://github.com/HurricaneJames/react-immutable-proptypes/blob/b2c415d5c29966133940a1f344121eacc3715985/src/ImmutablePropTypes.js#L40-L43

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

pachewise avatar Aug 07 '20 14:08 pachewise