You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
In production, createHelper is set to lodash's curryhere, which has signature: curry(func, arity).
In development, it uses a custom implementation here with signature: curry(func, helperName, arity, setDisplayName)
Note the different arity argument position.
createHelper is used to create setStatichere with the arity as the 3rd argument. This works fine in development, but in production, Lodash returns the function without actually implement currying.
setStatic, expecting to be curried, is called with a single argument here. This works fine in development but throws in production because it tries to access a key on an undefined variable.
This all happens during library setup, so even just includingrecompose in production throws the cryptic error: Uncaught TypeError: Cannot set property 'propTypes' of undefined.
The text was updated successfully, but these errors were encountered:
I received this error in a production environment as well.
I was using my own curried setProptypes and setDisplayname functions (not knowing they were part of the library), and when I switched to thr library functions I saw the same errors.
Again, as billyjanitsch points out--all is well in dev.
In production,
createHelper
is set to lodash'scurry
here, which has signature:curry(func, arity)
.In development, it uses a custom implementation here with signature:
curry(func, helperName, arity, setDisplayName)
Note the different arity argument position.
createHelper
is used to createsetStatic
here with the arity as the 3rd argument. This works fine in development, but in production, Lodash returns the function without actually implement currying.setStatic
, expecting to be curried, is called with a single argument here. This works fine in development but throws in production because it tries to access a key on an undefined variable.This all happens during library setup, so even just including
recompose
in production throws the cryptic error:Uncaught TypeError: Cannot set property 'propTypes' of undefined
.The text was updated successfully, but these errors were encountered: