paypal-js icon indicating copy to clipboard operation
paypal-js copied to clipboard

[Bug] Cannot read properties of undefined (reading 'render')

Open tengkuzulfadli opened this issue 3 years ago • 0 comments

🐞 Describe the Bug

Cannot read properties of undefined (reading 'render') in React js

🔬 Minimal Reproduction

Here is the code sandbox : https://codesandbox.io/s/react-paypal-with-paypal-paypal-js-package-z2xlnr?file=/src/App.js

😕 Actual Behavior

When I place clientId to get paypal up and running, I got an error message on console

🤔 Expected Behavior

It should be able to recognise render and behave as expected

🌍 Environment

  • Node.js/npm: - 16.17.0 LTS
  • OS: - Windows 10
  • Browser: - Chrome

➕ Additional Context

I've got the same issue with @paypal/react-paypal-js npm package where React skipped hostedFields for card fields

here is screenshot of the error:

Screenshot 2022-09-15 141707

tengkuzulfadli avatar Sep 15 '22 04:09 tengkuzulfadli