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

[๐Ÿ”ง Front-End Error] #2 / TypeError / 2021-09-16 #133

Open
NAPP4287 opened this issue Sep 16, 2021 · 0 comments
Open

[๐Ÿ”ง Front-End Error] #2 / TypeError / 2021-09-16 #133

NAPP4287 opened this issue Sep 16, 2021 · 0 comments
Assignees
Labels
Error Error Front-End Front-End Tasks
Milestone

Comments

@NAPP4287
Copy link
Contributor

์–ด๋–ค ์—๋Ÿฌ์ธ๊ฐ€์š”?

  • .length๋ฅผ ์ฝ์„ ์ˆ˜ ์—†๋‹ค๋Š” ์—๋Ÿฌ์˜€๋‹ค (๋Œ€์ฒด ์™œ...?)

์—๋Ÿฌ ๋ฉ”์‹œ์ง€

  • Uncaught TypeError: Cannot read property 'length' of undefined at SearchAutoComp (SearchAutoComp.js:29) at renderWithHooks (react-dom.development.js:14985) at mountIndeterminateComponent (react-dom.development.js:17811) at beginWork (react-dom.development.js:19049) at HTMLUnknownElement.callCallback (react-dom.development.js:3945) at Object.invokeGuardedCallbackDev (react-dom.development.js:3994) at invokeGuardedCallback (react-dom.development.js:4056) at beginWork$1 (react-dom.development.js:23964) at performUnitOfWork (react-dom.development.js:22776) at workLoopSync (react-dom.development.js:22707) at renderRootSync (react-dom.development.js:22670) at performSyncWorkOnRoot (react-dom.development.js:22293) at react-dom.development.js:11327 at unstable_runWithPriority (scheduler.development.js:468) at runWithPriority$1 (react-dom.development.js:11276) at flushSyncCallbackQueueImpl (react-dom.development.js:11322) at flushSyncCallbackQueue (react-dom.development.js:11309) at discreteUpdates$1 (react-dom.development.js:22420) at discreteUpdates (react-dom.development.js:3756) at dispatchDiscreteEvent (react-dom.development.js:5889)

์—๋Ÿฌ ํ•ธ๋“ค๋ง ๋ฐฉ๋ฒ•

  • console.log๋ฅผ ํ™•์ธํ•ด ๋ณด์•˜์„ ๋•Œ state๋ฅผ ๋‚ด๋ ค์ฃผ๋Š” ๋ถ€๋ถ„์—์„œ undefined๊ฐ€ ๋‚˜์˜จ ๊ฒƒ์„ ์ฐพ์„ ์ˆ˜ ์žˆ์—ˆ๋‹ค. ํ™•์ธ ๊ฒฐ๊ณผ, git์—์„œ merge๋˜๋ฉด์„œ props๋ฅผ ๋‚ด๋ ค์ฃผ๋Š” ๋ถ€๋ถ„์ด ์‚ฌ๋ผ์ ธ์„œ ์ „๋‹ฌ ๋ฐ›์ง€ ๋ชปํ•ด ๋‚˜์˜จ ์—๋Ÿฌ์˜€๋‹ค. ๊ทธ๋ž˜์„œ ์ „๋‹ฌ ๋ถ€๋ถ„์ด ๋Š๊ธด component๋กœ ๊ฐ€์„œ props๋ฅผ ๋‚ด๋ ค์คฌ๋”๋‹ˆ ํ•ด๊ฒฐ์ด ๋˜์—ˆ๋‹ค.

// ์ฝ”๋“œ๊ฐ€ ๋“ค์–ด๊ฐ€๋„ ์ข‹์•„์š”!

์—๋Ÿฌ ํ•ธ๋“ค๋ง์„ ์œ„ํ•ด ์ฐธ๊ณ ํ•œ ๋ ˆํผ๋Ÿฐ์Šค ๋งํฌ

  • ์—๋Ÿฌ ๋ฉ”์„ธ์ง€๋ฅผ ์ฝ์–ด์„œ ํŒŒ์ผ ํ•˜๋‚˜ํ•˜๋‚˜ ์ฐพ์•„๋ณด์•˜๋‹ค.
@NAPP4287 NAPP4287 added Front-End Front-End Tasks Error Error labels Sep 16, 2021
@NAPP4287 NAPP4287 added this to the Bare Minimum milestone Sep 16, 2021
minjman2659 added a commit that referenced this issue Oct 4, 2021
[Client] / #133 / EditMyPage.js : ์ด๋ฏธ์ง€ ๋ณ€๊ฒฝ ๋ฒ„ํŠผ๊ณผ ํšŒ์› ํƒˆํ‡ด ๋ฒ„ํŠผ ๋ฐ˜์‘ํ˜•์ผ ๋•Œ ์ˆ˜์ •
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Error Front-End Front-End Tasks
Projects
None yet
Development

No branches or pull requests

2 participants