Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: _this3.getCallsWithValues(...).find is not a function #681

Closed
sogko opened this issue Dec 14, 2015 · 1 comment
Closed

Comments

@sogko
Copy link

sogko commented Dec 14, 2015

react-relay threw an error when ran a react app on Chrome 43.
Same app worked as expected on Safari 9.0.1

Seems that it's using Array.prototype.find() but it's not supported on some browsers.

Guess that this issue can be worked around by adding a polyfill for Array.prototype.find to my react app.

Maybe I haven't looked hard enough, but I can't information on browser compatibility for react-relay.

Cheers!

// Value of `_this3.getCallsWithValues` when inspected
_this3.getCallsWithValues() = [{
   name: "name", value: "value"
}]
RelayQuery.js:451
Uncaught TypeError: _this3.getCallsWithValues(...).find is not a function
(anonymous function) @ RelayQuery.js:451
getIdentifyingArg @ RelayQuery.js:459
(anonymous function) @ getRelayQueries.js:59
getRelayQueries @ getRelayQueries.js:48
instrumentedCallback @ RelayProfiler.js:131
_runQueries @ RelayRenderer.js:123
RelayRenderer @ RelayRenderer.js:105
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:148
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:225
ReactPerf.measure.wrapper @ ReactPerf.js:66
ReactReconciler.mountComponent @ ReactReconciler.js:37
mountComponentIntoNode @ ReactMount.js:266
Mixin.perform @ Transaction.js:136
batchedMountComponentIntoNode @ ReactMount.js:282
Mixin.perform @ Transaction.js:136
ReactDefaultBatchingStrategy.batchedUpdates @ ReactDefaultBatchingStrategy.js:62
batchedUpdates @ ReactUpdates.js:94
ReactMount._renderNewRootComponent @ ReactMount.js:476
ReactPerf.measure.wrapper @ ReactPerf.js:66ReactMount._renderSubtreeIntoContainer @ ReactMount.js:550
ReactMount.render @ ReactMount.js:570
ReactPerf.measure.wrapper @ ReactPerf.js:66
(anonymous function) @ app.js:46
(anonymous function) @ bundle.js:168
__webpack_require__ @ bootstrap e340b8761ce8948d8f96:19
(anonymous function) @ bootstrap e340b8761ce8948d8f96:39
__webpack_require__ @ bootstrap e340b8761ce8948d8f96:19(anonymous function) @ bootstrap e340b8761ce8948d8f96:39
(anonymous function) @ bootstrap e340b8761ce8948d8f96:39
@josephsavona
Copy link
Contributor

Thanks for bringing this up. We extensively use the latest ES features and would recommend using a polyfill (the babel polyfill is 👍)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants