Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created June 23, 2019 06:54
Show Gist options
  • Save ohadlevy/9f8b7bb4480dcb33370ab8183d9a5f45 to your computer and use it in GitHub Desktop.
Save ohadlevy/9f8b7bb4480dcb33370ab8183d9a5f45 to your computer and use it in GitHub Desktop.
console.error node_modules/jest-prop-type-error/index.js:8
Error: Uncaught [TypeError: Cannot read property 'toString' of undefined]
at reportException (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at invokeEventListeners (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9)
at HTMLUnknownElementImpl._dispatch (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
at HTMLUnknownElementImpl.dispatchEvent (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
at HTMLUnknownElementImpl.dispatchEvent (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
at HTMLUnknownElement.dispatchEvent (/home/travis/build/theforeman/foreman/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21)
at Object.invokeGuardedCallbackDev (/home/travis/build/theforeman/foreman/node_modules/react-dom/cjs/react-dom.development.js:199:16)
at invokeGuardedCallback (/home/travis/build/theforeman/foreman/node_modules/react-dom/cjs/react-dom.development.js:256:31)
at replayUnitOfWork (/home/travis/build/theforeman/foreman/node_modules/react-dom/cjs/react-dom.development.js:18578:5)
at renderRoot (/home/travis/build/theforeman/foreman/node_modules/react-dom/cjs/react-dom.development.js:19468:13) TypeError: Cannot read property 'toString' of undefined
at toString (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorSelectors.js:49:45)
at Array.map (<anonymous>)
at Array.<anonymous> (/home/travis/build/theforeman/foreman/node_modules/seamless-immutable/src/seamless-immutable.js:132:38)
at map (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorSelectors.js:49:18)
at /home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorSelectors.js:39:12
at /home/travis/build/theforeman/foreman/node_modules/reselect/lib/index.js:76:25
at /home/travis/build/theforeman/foreman/node_modules/reselect/lib/index.js:36:25
at /home/travis/build/theforeman/foreman/node_modules/reselect/lib/index.js:90:33
at /home/travis/build/theforeman/foreman/node_modules/reselect/lib/index.js:36:25
at Function.mapStateToProps [as mapToProps] (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/index.js:41:10)
at mapToPropsProxy (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/connect/wrapMapToProps.js:53:92)
at handleNewState (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/connect/selectorFactory.js:56:26)
at handleSubsequentCalls (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/connect/selectorFactory.js:70:30)
at pureFinalPropsSelector (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/connect/selectorFactory.js:75:32)
at Object.runComponentSelector [as run] (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/components/connectAdvanced.js:38:25)
at Connect.onStateChange (/home/travis/build/theforeman/foreman/node_modules/react-redux/lib/components/connectAdvanced.js:214:23)
at dispatch (/home/travis/build/theforeman/foreman/node_modules/redux/lib/createStore.js:186:7)
at /home/travis/build/theforeman/foreman/node_modules/redux-thunk/lib/index.js:14:16
at dispatch (/home/travis/build/theforeman/foreman/node_modules/redux/lib/applyMiddleware.js:45:18)
at onResultsSuccess (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorActions.js:168:5)
at onResultsSuccess (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorActions.js:189:12)
at tryCatch (/home/travis/build/theforeman/foreman/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/home/travis/build/theforeman/foreman/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.<computed> [as next] (/home/travis/build/theforeman/foreman/node_modules/regenerator-runtime/runtime.js:117:21)
at step (/home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorActions.js:2858:191)
at /home/travis/build/theforeman/foreman/webpack/assets/javascripts/react_app/components/Editor/EditorActions.js:2858:361
console.error node_modules/jest-prop-type-error/index.js:8
The above error occurred in the <Connect(Editor)> component:
in Connect(Editor)
in Provider (created by WrapperComponent)
in WrapperComponent
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment