-
카테고리
-
세부 분야
풀스택
-
해결 여부
해결됨
31강의 ChatRoom 생성시 리액트모달 띄울때 에러가 나던데 왜 그런 걸까요 ? 작동은 잘 합니다.
21.02.28 19:59 작성 조회수 122
0
31강의 ChatRoom 생성하기에 모달 팝업창에 질문 있습니다.
모달 팝업창을 띄우면 콘솔에 이런 에러가 나옵니다.
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
at div
at Transition (http://localhost:3000/static/js/0.chunk.js:143095:30)
at Fade (http://localhost:3000/static/js/0.chunk.js:66501:24)
at BackdropTransition
at Modal (http://localhost:3000/static/js/0.chunk.js:137780:24)
at Modal (http://localhost:3000/static/js/0.chunk.js:67527:23)
at div
at ChatRooms (http://localhost:3000/static/js/main.chunk.js:999:5)
at Connect(ChatRooms) (http://localhost:3000/static/js/0.chunk.js:139310:75)
at div
at SidePanel
at div
at div
at ChatPage
at Route (http://localhost:3000/static/js/0.chunk.js:142152:29)
at Switch (http://localhost:3000/static/js/0.chunk.js:142354:29)
at App (http://localhost:3000/static/js/main.chunk.js:182:84)
at Router (http://localhost:3000/static/js/0.chunk.js:141787:30)
at BrowserRouter (http://localhost:3000/static/js/0.chunk.js:141407:35)
at Provider (http://localhost:3000/static/js/0.chunk.js:139023:20)
이런걸 찾아 보았는데, 제가 리액트 초보라 뭔말 인지 모르겠습니다.
https://stackoverflow.com/questions/60903335/warning-finddomnode-is-deprecated-in-strictmode-finddomnode-was-passed-an-inst
검색을 해서 찾아본 페이지 입니다.
답변을 작성해보세요.
1
John Ahn
지식공유자2021.03.09
안녕하세요 이태광님 이부분은 모달 모듈쪽에서 나오는 에러이기 떄문에 모듈쪽에서 아마 추후에 패치를 하지 않을까 싶습니다 ~ ! 리액트 strict 모드와 내부에서 충돌되는 부분이 있는 것 같은데 그 부분은 신경을 안써도 될것 같습니다 ~ !
답변 1