작성
·
284
0
https://github.com/mjpark401/vegan-mall.git
깃허브 주소입니다
무엇이 문제일까요? ㅠㅠ 그대로 따라했는데 카트 내역이 안뜨네요..
카트를 누르면 콘솔창 오류로는
index.js:1 Warning: validateDOMNesting(...): <tr> cannot appear as a child of <thread>.
in tr (at UserCardBlock.js:38)
in thread (at UserCardBlock.js:37)
in table (at UserCardBlock.js:36)
in div (at UserCardBlock.js:35)
in UserCardBlock (at CartPage.js:35)
in div (at CartPage.js:34)
in div (at CartPage.js:30)
in CartPage (at auth.js:39)
in AuthenticationCheck (created by Context.Consumer)
in Route (at App.js:28)
in Switch (at App.js:22)
in div (at App.js:21)
in Suspense (at App.js:19)
in App (at src/index.js:29)
in Router (created by BrowserRouter)
in BrowserRouter (at src/index.js:28)
in Provider (at src/index.js:21)
console.<computed> @ index.js:1
index.js:1 Warning: validateDOMNesting(...): <thread> cannot appear as a child of <table>.
in thread (at UserCardBlock.js:37)
in table (at UserCardBlock.js:36)
in div (at UserCardBlock.js:35)
in UserCardBlock (at CartPage.js:35)
in div (at CartPage.js:34)
in div (at CartPage.js:30)
in CartPage (at auth.js:39)
in AuthenticationCheck (created by Context.Consumer)
in Route (at App.js:28)
in Switch (at App.js:22)
in div (at App.js:21)
in Suspense (at App.js:19)
in App (at src/index.js:29)
in Router (created by BrowserRouter)
in BrowserRouter (at src/index.js:28)
in Provider (at src/index.js:21)
console.<computed> @ index.js:1
index.js:1 Warning: The tag <thread> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
in thread (at UserCardBlock.js:37)
in table (at UserCardBlock.js:36)
in div (at UserCardBlock.js:35)
in UserCardBlock (at CartPage.js:35)
in div (at CartPage.js:34)
in div (at CartPage.js:30)
in CartPage (at auth.js:39)
in AuthenticationCheck (created by Context.Consumer)
in Route (at App.js:28)
in Switch (at App.js:22)
in div (at App.js:21)
in Suspense (at App.js:19)
in App (at src/index.js:29)
in Router (created by BrowserRouter)
in BrowserRouter (at src/index.js:28)
in Provider (at src/index.js:21)
console.<computed> @ index.js:1
이렇게뜹니다 ㅠㅠ 저게 왜 오류라는건지....모르겠어요 ㅠㅠ
답변 기다리겠습니다 ㅠㅠ
답변 1
0
안녕하세요!!
현재 나오는 부분은 UI 적인 경고라 결정적으로 이 현상을 만드는 에러는 아닌데요
혹시 데이터를 백엔드에서 잘 가져오고 있나요?
console.log로 한번 확인해봐 주시고
만약 못 가져오고 있다면 백엔드 로그도 한번 확인해주시면 감사하겠습니다!
그래도 안된다면 다시 한번 새글로 다시 질문 부탁드릴게요!
감사합니다.