Po_tta_tt0
콩심콩 팥심팥 🌱
Po_tta_tt0
전체 방문자
오늘
어제
  • 분류 전체보기 (266)
    • 🐛 회고 (14)
    • 💭 생각 (2)
    • 🤸‍♀️ 내 프로젝트 (16)
      • FISH-NEWS (8)
      • MBTI 과몰입 테스트 (2)
      • twitter clonecoding with TS (4)
      • pilzagenda (2)
    • 👨‍👩‍👧‍👦 팀 프로젝트 (2)
      • 피우다 프로젝트 (0)
      • SEMO(세상의 모든 모임) (1)
      • 마음을 전하는 텃밭 (1)
      • Stackticon (0)
    • 👨‍💻 CS지식 (11)
    • ✍ 공부 (94)
      • JavaScript (21)
      • TypeScript (39)
      • Html (0)
      • CSS (2)
      • React (18)
      • NextJS (7)
      • Vue (1)
      • Python (1)
      • Django (0)
      • 개발환경 & 그 외 (2)
    • 🏄‍♀️ 코딩테스트 (99)
      • 🐍 Python (99)
    • 🐙 Git & GitHub (3)
    • 📑 오류기록 (8)
    • 📚 우리를 위한 기록 (9)
    • 수업 (3)
    • 강의 등 (2)
    • 👩‍🎓 SSAFY (0)
    • 👋 우테코 (0)

블로그 메뉴

  • 홈
  • 태그

공지사항

인기 글

태그

  • BFS + DP
  • react-router-dom
  • dfs
  • 백준 숨바꼭질
  • React
  • Next.js
  • js
  • 파이썬 다익스트라
  • 백준
  • 파이썬
  • 자바스크립트
  • 문자열
  • 이분탐색
  • DP
  • 구현
  • 백준 파이썬
  • 플로이드 워셜
  • 파이썬 감시 피하기
  • 시뮬레이션
  • bfs

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
Po_tta_tt0

콩심콩 팥심팥 🌱

[ React 18 ] Hot reloading 문제. You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client"
📑 오류기록

[ React 18 ] Hot reloading 문제. You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client"

2022. 3. 29. 14:18
반응형

 

Next.js를 이용해서 프로젝트를 만들었는데 자동 새로고침이 안되는중(hot reloading 안됨 ㅜㅜ!!)
시도해본 방법

 

1. .next 파일을 지웠다가 다시 시작해본다(캐시때문이라고 생각)
2. pages 안의 파일 이름을 통일 => index.tsx 파일에서 작업중이라 의미가 없음(시도해봤지만 역시 안됨)
3. pages 파일 첫글자를 대문자로 => index.tsx 파일에서 작업중이라 의미가 없음(시도해봤지만 역시 안됨)

 

 

하지만 아직 안된다

방법 아시는분들 있으면 말씀주세요

 

 

제 생각에는 react rc버전을 사용하면서 react 18에서 지원되지 않는 hydrateRoot를 사용해서 그런 것 같습니다

 

🚨 Warning: You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client"

 

이런 메세지가 콘솔에 떠서

react-dom을 import 하는 곳에 가서 react-dom/client로 바꾸려 했지만

아직까지는 react-dom을 사용하는 곳을 찾지 못했습니다

 

 

<폴더 구조>

<next.config.js>

<또다른 Error>

react 렌더링 트리에 들지 못했다고 뜨는데.. 알수가 없다

 

 

콘솔창과 터미널에서는 계속 컴파일링이 되는 것을 확인할 수 있다.

 

 

 

 

 

 

https://nextjs.org/docs/basic-features/fast-refresh#how-it-works

https://www.cloudsavvyit.com/15975/whats-coming-in-react-18/
https://github.com/vercel/next.js/issues/16449
https://github.com/vercel/next.js/issues/30576

https://github.com/reactwg/react-18/discussions/5

https://github.com/vercel/next.js/pull/26664

반응형

'📑 오류기록' 카테고리의 다른 글

[ axios && jest ERROR] Cannot use import statement outside a module  (0) 2023.01.05
[ FireBase ERROR ] Argument of type 'DocumentData' is not assignable to parameter of type 'Topic'.  (0) 2022.12.27
npm start / yarn start가 안될 때. 오류코드 : error Command failed with exit code 1.  (0) 2022.03.07
[ 줄바꿈 오류 ] warning: LF will be replaced by CRLF in...  (0) 2022.02.24
[ 오류기록 / Firebase ] Firebase: Error (auth/account-exists-with-different-credential). 해결법  (0) 2022.02.08
    '📑 오류기록' 카테고리의 다른 글
    • [ axios && jest ERROR] Cannot use import statement outside a module
    • [ FireBase ERROR ] Argument of type 'DocumentData' is not assignable to parameter of type 'Topic'.
    • npm start / yarn start가 안될 때. 오류코드 : error Command failed with exit code 1.
    • [ 줄바꿈 오류 ] warning: LF will be replaced by CRLF in...
    Po_tta_tt0
    Po_tta_tt0
    감자의 코딩하는 블로그 콩심은데 콩나고 팥심은데 팥난다

    티스토리툴바