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
Getting the error Cannot read property 'name' of undefined after upgrade from 7.9.1 to 7.11.0.
Example of source code that will trigger the crash:
importReactfrom'react';importpropTypesfrom'prop-types';constFoo=({ bar, children })=><divclassName={bar}>{children}</div>;constBaz=({...rest})=><Foo{...rest}>Baz</Foo>;Foo.propTypes={bar: propTypes.string,};Baz.propTypes=Foo.propTypes;export{Foo,Baz,};
Baz.propTypes = Foo.propTypes; seems to be the trigger.
The text was updated successfully, but these errors were encountered:
Getting the error
Cannot read property 'name' of undefined
after upgrade from 7.9.1 to 7.11.0.Example of source code that will trigger the crash:
Baz.propTypes = Foo.propTypes;
seems to be the trigger.The text was updated successfully, but these errors were encountered: