Skip to content

Instantly share code, notes, and snippets.

@kentcdodds kentcdodds/downshift-error-log Secret
Last active Jan 25, 2018

Embed
What would you like to do?
For use in my newsletter (http://kcd.im/news)
Error: Uncaught [Error: downshift: You provided the id of "foo" for your input, but the htmlFor of your label is "bar". You must either remove the id from your input or set the htmlFor of the label equal to the input id.]
at reportException (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at invokeEventListeners (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:209:9)
at HTMLUnknownElementImpl._dispatch (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
at HTMLUnknownElementImpl.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
at HTMLUnknownElementImpl.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
at HTMLUnknownElement.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:143:21)
at Object.invokeGuardedCallbackDev (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:581:16)
at invokeGuardedCallback (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:438:27)
at renderRoot (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10366:7)
at performWorkOnRoot (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:11014:24) Error: downshift: You provided the id of "foo" for your input, but the htmlFor of your label is "bar". You must either remove the id from your input or set the htmlFor of the label equal to the input id.
at getInputProps (/Users/kdodds/Developer/downshift/src/downshift.js:896:1093)
at render (/Users/kdodds/Developer/downshift/src/__tests__/downshift.get-label-props.js:68:24)
at Downshift.render (/Users/kdodds/Developer/downshift/src/downshift.js:866:45)
at finishClassComponent (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:7873:31)
at updateClassComponent (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:7850:12)
at beginWork (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:8225:16)
at performUnitOfWork (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10224:16)
at workLoop (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10288:26)
at HTMLUnknownElement.callCallback (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:542:14)
at invokeEventListeners (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27)
at HTMLUnknownElementImpl._dispatch (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
at HTMLUnknownElementImpl.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
at HTMLUnknownElementImpl.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
at HTMLUnknownElement.dispatchEvent (/Users/kdodds/Developer/downshift/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:143:21)
at Object.invokeGuardedCallbackDev (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:581:16)
at invokeGuardedCallback (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:438:27)
at renderRoot (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10366:7)
at performWorkOnRoot (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:11014:24)
at performWork (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10967:7)
at requestWork (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10878:7)
at scheduleWorkImpl (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10732:11)
at scheduleWork (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:10689:12)
at scheduleTopLevelUpdate (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:11193:5)
at Object.updateContainer (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:11231:7)
at /Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:15226:19
at Object.unbatchedUpdates (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:11102:12)
at renderSubtreeIntoContainer (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:15225:17)
at Object.render (/Users/kdodds/Developer/downshift/node_modules/react-dom/cjs/react-dom.development.js:15290:12)
at Object.render (/Users/kdodds/Developer/downshift/node_modules/enzyme-adapter-react-16/build/ReactSixteenAdapter.js:218:50)
at new ReactWrapper (/Users/kdodds/Developer/downshift/node_modules/enzyme/build/ReactWrapper.js:98:16)
at mount (/Users/kdodds/Developer/downshift/node_modules/enzyme/build/mount.js:19:10)
at expect (/Users/kdodds/Developer/downshift/src/__tests__/downshift.get-label-props.js:46:21)
at Object.toThrowErrorMatchingSnapshot (/Users/kdodds/Developer/downshift/node_modules/jest-snapshot/build/index.js:136:7)
at Object.throwingMatcher [as toThrowErrorMatchingSnapshot] (/Users/kdodds/Developer/downshift/node_modules/expect/build/index.js:214:24)
at Object.<anonymous>.test (/Users/kdodds/Developer/downshift/src/__tests__/downshift.get-label-props.js:53:3)
at Object.asyncFn (/Users/kdodds/Developer/downshift/node_modules/jest-jasmine2/build/jasmine_async.js:124:345)
at resolve (/Users/kdodds/Developer/downshift/node_modules/jest-jasmine2/build/queue_runner.js:51:12)
at new Promise (<anonymous>)
at mapper (/Users/kdodds/Developer/downshift/node_modules/jest-jasmine2/build/queue_runner.js:40:274)
at promise.then (/Users/kdodds/Developer/downshift/node_modules/jest-jasmine2/build/queue_runner.js:83:39)
at <anonymous>
~/Developer/downshift (master)
🥓 $ npx cloc node_modules/
npx: installed 1 in 3.868s
65775 text files.
29725 unique files.
Complex regular subexpression recursion limit (32766) exceeded at /Users/kdodds/.npm/_npx/14844/bin/cloc line 9619.
Complex regular subexpression recursion limit (32766) exceeded at /Users/kdodds/.npm/_npx/14844/bin/cloc line 9619.
Complex regular subexpression recursion limit (32766) exceeded at /Users/kdodds/.npm/_npx/14844/bin/cloc line 9619.
38765 files ignored.
github.com/AlDanial/cloc v 1.74 T=657.12 s (41.2 files/s, 5185.5 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
JavaScript 21024 283714 342123 1735415
JSON 2807 1422 0 550205
Markdown 1736 66030 4 168463
TypeScript 1032 17525 56659 127105
HTML 60 2463 40 20773
XML 45 241 13 9377
C/C++ Header 20 1115 325 5571
YAML 217 155 198 5348
CoffeeScript 55 1516 364 4216
make 36 371 359 1224
CSS 11 114 33 1210
Python 3 200 188 811
Windows Module Definition 8 161 0 765
C++ 8 137 91 484
Bourne Shell 21 54 55 293
D 7 0 0 123
JSX 2 5 14 78
Handlebars 3 13 0 65
Bourne Again Shell 2 3 1 30
OCaml 1 23 104 29
diff 1 2 24 18
Lisp 1 0 0 6
DOS Batch 1 0 0 2
---------------------------------------------------------------------------------------
SUM: 27101 375264 400595 2631611
---------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.