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.

Uncaught TypeError: Cannot read property 'oneOf' of undefined

See original GitHub issue

Call Stack:

index.js:415 Uncaught TypeError: Cannot read property 'oneOf' of undefined
    at Object.169../utils.js (index.js:415)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.600.prop-types (Form.js:7)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.601.../reducers (FormContainer.js:5)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.598../ErrorBoundary (App.js:2)

The line it’s referring to:

timing: _react2.default.PropTypes.oneOf([// easing type
  'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear', 'step-start', 'step-end']),

Conflict with React 16? Something else?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moarwickcommented, Oct 11, 2017

grrr… try 0.8.3 😃

1reaction
moarwickcommented, Oct 11, 2017

Thanks. I already updated to the separate prop-types package, but looks like I missed one location. Problem is React.PropTypes here https://github.com/moarwick/react-mt-svg-lines/blob/master/src/index.js#L27

Will fix soon…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'oneOf' of ...
I am able to resolve the issue. Since I upgraded to react v15 to v16 the issue was with react-alert module as I...
Read more >
Uncaught TypeError: Cannot read property '1' of undefined
This error occurs in Chrome Browser when you read a property or call a method on an undefined object . Uncaught TypeError: Cannot...
Read more >
Cannot read properties of undefined (reading 'null') - Help
I think you are using the wrong variable name. var expiryDate = jsonData.accounts[i].dateOfBirth; pm.expect(dateOfBirth).to.be.oneOf([null,“ ...
Read more >
Fix the "Cannot read property 'map' of undefined" Error in ...
The reason this works is that, while your data fetching is happening, React will call the map method on an empty data array....
Read more >
React TypeError: Cannot read property function of undefined
SET YOUR LIKE THERE ...
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