question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'type' of undefined

See original GitHub issue

General 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
crookedneighborcommented, Sep 6, 2019

This is fixed on master and will go out in the next release. We’ll close this when the next release is out.

1reaction
crookedneighborcommented, Jul 31, 2019

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found