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
Working with react-stripe-js and stripe-js betas, I'm getting the following error when trying to load up my webapp that uses stripe:
Uncaught TypeError: Cannot read property 'isRequired' of undefined
The offending line appears to be:
/**
* @docs https://stripe.com/docs/stripe-js/react#elements-consumer
*/
const ElementsConsumer = ({ children, }) => {
const ctx = useElementsContextWithUseCase('mounts <ElementsConsumer>');
// Assert to satsify the busted React.FC return type (it should be ReactNode)
return children(ctx);
};
ElementsConsumer.propTypes = {
children: __exports.func.isRequired, <-- ERROR FROM HERE
};
Based on what @christopher-stripe linked in the TypeScript issue, maybe this comes from that commonjs namedExports? Let me know if anything pops out to you guys.
The text was updated successfully, but these errors were encountered:
Working with react-stripe-js and stripe-js betas, I'm getting the following error when trying to load up my webapp that uses stripe:
Uncaught TypeError: Cannot read property 'isRequired' of undefined
The offending line appears to be:
Based on what @christopher-stripe linked in the TypeScript issue, maybe this comes from that commonjs namedExports? Let me know if anything pops out to you guys.
The text was updated successfully, but these errors were encountered: