inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

김진호님의 게시글

김진호 김진호

@wasabi9812

수강평 작성수
1
평균평점
5.0

게시글 8

질문&답변

knight2 hp값이 어떤식으로 할당되나요

글을 읽다가 궁금해서 남깁니다. 1번질문에서는 원래 knight2.hp는 0이나와야 하지않나요? new Knight();를 했을때 초기값으로 hp가 100이 되려면 class knight를 생성할때 public int hp =100;을 해줘야 1번답변 knight2.hp =100이 되지않나요?

좋아요수
0
댓글수
2
조회수
323

질문&답변

react-router-dom사용이후 컴파일은 성공했으나 그뒤로 지속적인 문제가 발생합니다..

Uncaught TypeError: Cannot create property '_updatedFibers' on number '0' at requestUpdateLane (react-dom.development.js:25417:1) at updateContainer (react-dom.development.js:28815:1) at ReactDOMHydrationRoot.render.ReactDOMRoot.render (react-dom.development.js:29314:1) at ./src/index.js (index.js:9:1) at options.factory (react refresh:6:1) at __webpack_require__ (bootstrap:24:1) at startup:7:1 at startup:7:1 312react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1) 4react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchDiscreteEvent (react-dom.development.js:6430:1) 4react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1) 9react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchDiscreteEvent (react-dom.development.js:6430:1) 156react-dom.development.js:26146 Uncaught TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') at batchedUpdates$1 (react-dom.development.js:26146:1) at batchedUpdates (react-dom.development.js:3991:1) at dispatchEventForPluginEventSystem (react-dom.development.js:9287:1) at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (react-dom.development.js:6465:1) at dispatchEvent (react-dom.development.js:6457:1) at dispatchContinuousEvent (react-dom.development.js:6444:1) 이런식으로 뜨고 아무것도 나오지않습니다

좋아요수
1
댓글수
2
조회수
1893

질문&답변

axios 오류 "Can't resolve axois in "

Module not found: Error: Can't resolve 'axois' in 'C:\Users\wasab\OneDrive\바탕 화면\reactsecond\src\main' ERROR in ./src/main/index.js 6:0-26 Module not found: Error: Can't resolve 'axois' in 'C:\Users\wasab\OneDrive\바탕 화면\reactsecond\src\main' 다시 원복해도 모듈인식을 못합니다

좋아요수
0
댓글수
3
조회수
507

질문&답변

axios 오류 "Can't resolve axois in "

PS C:\Users\wasab\OneDrive\바탕 화면\reactfirst> npm install axios added 3 packages, and audited 1469 packages in 4s 226 packages are looking for funding run npm fund for details 6 high severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force 이게떠서 제가알기론 취약성없을떄까지 downgrade 한다고알고있는데 이거 일단 해보니까 72 vulnerabilities (12 low, 19 moderate, 37 high, 4 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force PS C:\Users\wasab\OneDrive\바탕 화면\reactfirst> 더 큰일이 나버려서 이제 npm start하면 아예 사이트에 연결할수없다고 떠버립니다 ㅠㅠ

좋아요수
0
댓글수
3
조회수
507