Cannot read property 'type' of undefined
See original GitHub issueGeneral information
- SDK/Library version: 1.12.0
- Environment: Production
- Browser and OS: 8 events on Chrome 71.0.3578, 1 event on Chrome 70.0.3538. Multiple OS
Issue description
I have pinpointed the error to this line
Exception (sentry):
TypeError: Cannot read property 'type' of undefined
at h._validateForm(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:79:269574)
at h._sendRequestableEvent(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:79:267347)
at h._onValidityChangeEvent(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:79:274476)
at M.n._emit(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:79:291252)
at M.<anonymous>(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:79:276954)
at MessageEvent.a(/dist/gen/vendors~xxx.5b77e104a96fa1555efd.prod.js:43:183842)
Breadcrumbs (sentry):
17:47:26
ui.click
div.sc-kcbnda.jOriPb > div.sc-iIHSe.cANhXL > button.sc-htpNat.sc-hcmgZB.iSrXqG
17:47:40
ui.click
div.braintree-option.braintree-option__card > div.braintree-option__label
17:48:27
exception
TypeError: Cannot read property 'type' of undefined
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'type' of undefined ...
Your clicking action returns a function and you are dispatching that function with this.props.dispatch(clicking(isClicking)); .
Read more >Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >TypeError: Cannot read property 'type' of undefined #2795
eslint-plugin-react v7.20.6 causes the following error: ESLint: 7.6.0 (or 7.9.0) TypeError: Cannot read property 'type' of undefined ...
Read more >TypeError: Cannot read property 'type' of undefined is ...
This issue happens when the field used in one of your onSubmit Client Scripts is not present on the form view.
Read more >How to Avoid the Infamous "Cannot read properties of ... - Bitovi
Interpreting undefined or null as subtypes of all other types can lead to runtime problems. For example, if you try to get the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed on master and will go out in the next release. We’ll close this when the next release is out.
@rebendajirijr I assume it’s happening at this line: https://github.com/braintree/braintree-web-drop-in/blob/9942c735e21d4adf14ddde617fd82764cd1dfb82/src/views/payment-sheet-views/card-view.js#L293
I still need a reproducible case though so I can be sure. Can you give me steps to cause that error to happen? Do you have a demo site where it happens?