강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

이태광님의 프로필 이미지
이태광

작성한 질문수

따라하며 배우는 리액트, 파이어베이스 - 채팅 어플리케이션 만들기[2023.12 리뉴얼]

31강의 ChatRoom 생성시 리액트모달 띄울때 에러가 나던데 왜 그런 걸까요 ? 작동은 잘 합니다.

해결된 질문

작성

·

206

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

1

John Ahn님의 프로필 이미지
John Ahn
지식공유자

안녕하세요 이태광님  이부분은 모달 모듈쪽에서 나오는 에러이기 떄문에 모듈쪽에서 아마 추후에 패치를 하지 않을까 싶습니다 ~ !  리액트 strict 모드와 내부에서 충돌되는 부분이 있는 것 같은데 그 부분은  신경을 안써도 될것 같습니다 ~ ! 

이태광님의 프로필 이미지
이태광
질문자

아 그렇쿤요. ㅋㅋ

이태광님의 프로필 이미지
이태광

작성한 질문수

질문하기