inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

172만명의 커뮤니티!! 함께 토론해봐요.

hydration 오류 (Fragment key값)

해결됨

Next + React Query로 SNS 서비스 만들기

강사님 안녕하세요, 백엔드 서버 연결하고 게시물(PostForm.tsx) 올리는 부분에서 오류가 발생하여 질문드립니다. (섹션5 - 게시글 업로드 완성) hydration 이슈를 찾아봤는데 ( https://velog.io/@jhplus13/NextJS-React-Hydration-Error-%ED%95%B4%EA%B2%B0%EA%B8%B0 ) typeof window 과 관련있는거 같은데 혼자 해결하기 어려워 링크 첨부드립니다..! 오류해결을 위해 (hydration / PostRecommends.tsx) 해당 부분을 수정하였습니다..! 변수입력확인( Date.now(), Math.random(), new Date() ) + faker 해당부분은 주석처리 했습니다. 태그 중첩 확인, layout.tsx font 연결 확인 [콘솔 에러] intercept-console-error.js:56 A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used: - A server/client branch `if (typeof window !== 'undefined')`. - Variable input such as `Date.now()` or `Math.random()` which changes each time it's called. - Date formatting in a user's locale which doesn't match the server. - External changing data without sending a snapshot of it along with the HTML. - Invalid HTML tag nesting. It can also happen if the client has a browser extension installed which messes with the HTML before React loaded. https://react.dev/link/hydration-mismatch ... <HotReload assetPrefix=""> <ReactDevOverlay state={{nextId:1, ...}} dispatcher={{...}}> <DevRootNotFoundBoundary> <NotFoundBoundary notFound={<NotAllowedRootNotFoundError>}> <NotFoundErrorBoundary pathname="/home" notFound={<NotAllowedRootNotFoundError>} notFoundStyles={undefined} ...> <RedirectBoundary> <RedirectErrorBoundary router={{...}}> <Head> <link> <RootLayout> <html lang="ko" className="__variable..."> <body className="__className_fde3a9" - cz-shortcut-listen="true" > ... ... [Fragment key값 오류내용] // package.json { "name": "zcom", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@auth/core": "^0.27.0", "@fortawesome/fontawesome-svg-core": "^6.7.1", "@fortawesome/free-solid-svg-icons": "^6.7.1", "@fortawesome/react-fontawesome": "^0.2.2", "@tanstack/react-query": "^5.62.11", "@vanilla-extract/css": "^1.16.1", "@vanilla-extract/recipes": "^0.5.5", "@vanilla-extract/sprinkles": "^1.6.3", "classnames": "^2.5.1", "clsx": "^2.1.1", "dayjs": "^1.11.13", "next": "^15.0.4", "next-auth": "^5.0.0-beta.25", "react": "^19.0.0", "react-dom": "^19.0.0", "react-intersection-observer": "^9.14.1", "react-textarea-autosize": "^8.5.6", "zustand": "^5.0.2" }, "devDependencies": { "@faker-js/faker": "^9.3.0", "@tanstack/react-query-devtools": "^5.62.11", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", "@vanilla-extract/next-plugin": "^2.4.7", "@vanilla-extract/webpack-plugin": "^2.3.15", "msw": "^2.6.8", "typescript": "^5" }, "msw": { "workerDirectory": [ "public" ] } }

  • react
  • next.js
  • react-query
  • next-auth
  • msw
인생꿀잼 댓글 3 좋아요 0 조회수 285

vscode 재 다운로드

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

강의 다시 듣고 해도 여전히 관리자로 실행이 안됩니다. 구글에서 vscode 검색 후 클릭하면 아래 화면이 뜨고 2, 다운로드forwindows 누르면 자동으로 다운이 됩니다. 해당 아이콘 우클릭하여 관리자모드로 실행이라고 누르면 팝업창이 뜹니다. 무슨 문제인지 강의대로 했는데도 안되는데, 앞으로 수업듣고 프로그램 사용할 때 관리자로 해야 한다고 말씀하셔서 다시 문의합니다. 세번째 삭제하고 다시 설치하고 있는데도 동일한 문제가 발생하는데, 재질문 없이 문제 해결하고 싶어서 모든 단계마다 캡쳐해서 보내드리오니 다시 답변해주시면 감사하겠습니다. 이 문제가 해결이 안되어 강의 진도가 못나가고 있습니다....

  • python
sellow20 댓글 2 좋아요 0 조회수 229

vscode 실행

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

저도 관리자모드로 실행하고 싶은데 관리자모드 실행 버튼 누를때마다 아래와 같은 메시지가 뜹니다. 영상 하나하나 다 정지시켜가며 따라했는데 뭐가 문제인걸까요?

  • python
sellow20 댓글 1 좋아요 0 조회수 119

강의자료 부탁드립니다

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

저도 강의자료 부탁드립니다 ineeu45@g.skku.edu 입니다

  • python
귀한 사슴 댓글 2 좋아요 0 조회수 54

api 버그를 활용한 서체 일괄체크에서 글자색 모두 바꾸기가 안되서 문의드립니다

해결됨

직장인에게 꼭 필요한 파이썬-아래아한글 자동화 레시피

안녕하세요. 한글 2024버전에서 API 버그가 픽스 됐는지 FaceNameHangul = "모두" 로 바꿔서 실행하면 콘솔창에서도 out값이 False로 출력되면서 작동이 안됩니다. 한글이 버전업 되면서 버그 픽스가 된걸까요? 실행화면 첨부합니다.

  • python
  • 한컴오피스
김재영 댓글 2 좋아요 1 조회수 206

실습 코드 깃허브 업로드

미해결

[리뉴얼] 처음하는 SQL과 데이터베이스(MySQL) 부트캠프 [입문부터 활용까지]

안녕하세요! 데이터분석 직무로 SQL 수업을 듣게 되었습니다! 혹시 실습하면서 정리한 코드 깃허브에 업로드가 가능할까요? - 강의 영상에 대한 질문이 있으시면, 상세히 문의를 작성해주시면, 주말/휴일 제외, 2~3일 내에 답변드립니다 (이외의 문의는 평생 강의이므로 양해를 부탁드립니다.) - 강의 답변이 도움이 안되셨다면, dream@fun-coding.org 로 메일 주시면 재검토하겠습니다. - 괜찮으시면 질문전에 챗GPT 와 구글 검색을 꼭 활용해보세요~ - 잠깐! 인프런 서비스 운영(다운로드 방법포함) 관련 문의는 1:1 문의하기를 이용해주세요.

  • python
  • sql
  • mysql
  • dbms/rdbms
  • 데이터-엔지니어링
이예진 댓글 1 좋아요 0 조회수 166

자료를 다운받았는데 주피터에 뜨지않습니다

미해결

문과생도, 비전공자도, 누구나 배울 수 있는 파이썬(Python)!

제발 도와주세요... 아무리해봐도 주피터에 뜨지않아요 pip 명령어를 통해 extension업그레이드도 해봤는데 안되요..

  • python
escho94 댓글 2 좋아요 0 조회수 207

강의 자료 부탁드립니다.

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

강의 자료 부탁드립니다. sindori1@naver.com 입니다. 감사합니다.

  • python
sindori1 댓글 2 좋아요 0 조회수 36

명령어 입력 후

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

엔터를 치면 출력값이 안나오는데, 매번 컨트롤+f5를 자판으로 치는게 맞나요? 선생님은 코딩하고 바로 출력값이 나오는 것 같은데 따라서 하면 안되서 늘 마우스를 )괄호 끝에 둔 후 두 개의 키를 입력해야 나오더라구요.. 이게 맞는지 문의합니다.

  • python
sellow20 댓글 1 좋아요 0 조회수 59

word wrap 체크 후에도 콘솔 한줄로 출력되는현상

미해결

[신규 개정판] 이것이 진짜 크롤링이다 - 기본편

vscode와 주피터 노트북 설치 후 word wrap체크까지 했는데도 콘솔에 한줄로 나오는데 왜이러는건가요 노트북은 맥북프로이고 파이썬 버전은 3.13.1이고 주피터 노트북은 vscode의 extention으로 설치되었습니다

  • python
  • 웹-크롤링
clean 댓글 1 좋아요 0 조회수 219

vscode 실행

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

2강-1강의 듣는데 왜 저는 실행이 안되나요? 엔터가 아니라 컨트롤 f5 누르면 아래와 같이 화면이 뜹니다.

  • python
sellow20 댓글 3 좋아요 0 조회수 178

vscode

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

다운로드하고 설치까지했는데(명령코드로 확인까지 완료) 매번 새로 실행 할 때마다 새로 설치하라고 뜨는데 어떻게 하면 되나요? 그리고 강의 경로 따라서 다운로드 했는데도 이 파일로는 관리자 실행이 안된다거 계속 떠서 all user 로 설치했는데 상관없는거 맞죠?

  • python
sellow20 댓글 2 좋아요 0 조회수 189

docstring이 안 먹혀요

미해결

FastAPI 완벽 가이드

docstring이 안 먹혀요.. AI한테 물어봐도 해결이 안되네요 왜 저는 docstring이 안보일까요?? 다른거 summary 나 tags, description은 다 해결가능합니다.

  • python
  • sql
  • sqlalchemy
  • FastAPI
leejken530 댓글 1 좋아요 0 조회수 103

표 내부 셀 추출

미해결

[2024년 개정]이것이 진짜 한글자동화다[기본편]

내부 표를 인식하여 이미지 파일로 추출하고 자 하는데, 궁금한 부분이 있어 글 남깁니다. 표 내부 셀에 그림이 있는 경우, 표를 추출할 때, 내부의 그림과 글까지 하나의 표로 추출하는 방법이 있을까요? 표 내부의 통합된 셀도 표 추출 시, 함께 추출할 수 있는 방법이 있을까요?

  • python
  • excel
  • rpa
  • 한글
망고맛있어 댓글 2 좋아요 1 조회수 348

input type="hidden"으로 설정 시, 오류 미발생

해결됨

한 입 크기로 잘라먹는 Next.js

7.2) 리뷰 추가 기능 구현하기 > 15:05~ 두 방식 모두 동일하게 입력 필드를 숨김 처리하지만 1번처럼 input의 type을 hidden으로 설정하게 되면 Next.js에서 오류를 발생시키지 않네요. // 1번 방식 <input type="hidden" name="bookId" value={bookId} /> // 2번 방식 <input hidden name="bookId" value={bookId} />

  • react
  • typescript
  • next.js
Next 댓글 2 좋아요 1 조회수 311

편집모드가 안됩니다.

미해결

프로그래밍 시작하기 : 도전! 45가지 파이썬 기초 문법 실습 (Inflearn Original)

엔터를 눌러도 esc를 눌러도 계속 command mode든 edti mode든 계속 파란색밖에 나오지 않습니다. 따로 설정을 바꾼 것도 없구요. 해결 방법좀 알려주세요

  • python
tomsslee043 댓글 2 좋아요 0 조회수 322

싸이월드 만들기 1탄

해결됨

[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스

코드를 아래와 같이 작성하였는데, 이렇게 표시가 됩니다. (사진 참고) 레퍼런스도 참고하여 적었는데 해결이 안 되어서 질문 납깁니다. 또한 fontawesome도 강의 내용대로 연동시키려 하였는데 이모티콘이 보이지 않습니다. 어떻게 해야 할까요? <!DOCTYPE html> <html lang="ko"> <head> <title>홍길동 님의 미니홈피 :: 사이좋은 사람들, 싸이월드</title> <link href="./styles/index.css" rel="stylesheet" /> <script src="https://kit.fontawesome.com/e3aa47cdec.js" crossorigin="anonymous" ></script> </head> <body> <div class="background"> <div class="outerbox"> <div class="wrapper"> <div class="wrapper__left"> <div class="wrapper__left__header"> <!-- TODAY 0 | TOTAL 12345 --> <div class="today"> <span>TODAY</span> <span>0</span> <span> | TOTAL</span> <span>12345</span> </div> </div> <div class="wrapper__left__body"> <div class="left__body__header"> <div class="left__body__header__gray"></div> <div class="left__body__header__line"></div> </div> <div class="left__body__profile"> <div class="profile__detail"> <i class="fa-regular fa-face-grin"></i>이름</div> <div class="profile__detail"> <i class="fa-solid fa-phone"></i>Phone</div> <div class="profile__detail"> <i class="fa-regular fa-envelope"></i>E-mail</div> <div class="profile__detail"> <i class="fa-brands fa-instagram"></i>인스타그램</div> </div> <div class="left__body__footer"> <div class="wrapper__feel"> <div class="feel__title">오늘의 기분</div> <select class="feel__select"> <option>기쁨 😊</option> <option>슬픔 🥲</option> <option>화남 😑</option> <option>분노 🤬</option> </select> </div> </div> </div> <div class="wrapper__right"></div> </div> </div> </div> </body> </html> ------------- css ------------- * { box-sizing: border-box; margin: 0px; } .background { width: 1024px; height: 600px; background-image: url("../images/background.png"); padding: 20px 0px 0px 20px; } .outerbox { width: 808px; height: 544px; background-image: url("../images/outerbox.png"); } .wrapper { display: flex; flex-direction: row; padding: 32px 0 0 32px; } .wrapper__left { width: 208px; height: 472px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; margin-left: 3px; margin-right: 7px; } .wrapper__left__header { width: 100%; height: 30px; display: flex; flex-direction: row; justify-content: center; align-items: center; } .today { padding-top: 10px; font-size: 9px; } .wrapper__left__body { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; padding: 20px 30px 0px 30px; border: 1px solid gray; border-radius: 15px; background-color: white; } .left__body__header { width: 100%; display: flex; flex-direction: column; } .left__body__header__gray { width: 148px; height: 133px; background-color: gray; } .left__body__header__line { border-top: 1px dotted black; margin: 12px 0px; } .left__body__profile { font-style: normal; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; } .profile__detail { color: #999999; font-size: 10px; margin-bottom: 10px; display: flex; flex-direction: row; } .fas { color: black; margin-right: 10px; width: 5px; height: 5px; } .left__body__footer { width: 100%; margin-bottom: 30px; } .wrapper__feel { display: flex; flex-direction: column; justify-content: center; width: 100%; } .feel__title { font-size: 11px; margin-bottom: 5px; color: gray; } .wrapper__right { width: 524px; height: 472px; background-color: violet; display: flex; flex-direction: column; justify-content: flex-end; padding-left: 5px; }

  • react
  • node.js
  • seo
  • graphql
  • next.js
이세은 댓글 2 좋아요 0 조회수 222

새로운 강의 쿠폰 질문

해결됨

[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스

개인적인 사정으로 오늘에서야 공지사항을 확인했습니다. 기존의 프론트엔드 고농축 코스를 수강중인데 혹시 쿠폰을 다시 발급 받을 수 있을까요? 답변 부탁드립니다. 좋은 강의 제공해주셔서 감사합니다. (+쿠폰함을 확인해보았지만 제공받은 쿠폰이 없었습니다. )

  • react
  • node.js
  • seo
  • graphql
  • next.js
Jinsol Kim 댓글 2 좋아요 0 조회수 200

MMDetection에서 densehead와 roihead의 차이

해결됨

[개정판] 딥러닝 컴퓨터 비전 완벽 가이드

안녕하세요. 강의 정말 잘 듣고있습니다! 다름이 아니라 MMDetection을 다시 공부하던 중 모델 아키텍쳐 부분에서 densehead와 roihead의 차이가 궁금해져서 이렇게 글을 남깁니다. 설명에는 densehead와 roihead 모두 object의 위치와 classification을 수행한다고 나와있어서요.. 감사합니다!

  • python
  • 머신러닝
  • 딥러닝
  • keras
  • tensorflow
  • 컴퓨터-비전
jcy4023 댓글 2 좋아요 1 조회수 149

17609 투포인터 문제를 재귀로 풀 경우가 궁금합니다!

해결됨

세계 대회 진출자가 알려주는 코딩테스트 A to Z (with Python)

파트 : 투 포인터 알고리즘 [문제풀이]: BOJ 17609 투 포인터 알고리즘 [문제풀이] : BOJ 17609 안녕하세요, 백준 17609 회문 문제를 혼자서 풀어봤을 때, 처음에 투 포인터 알고리즘으로 풀려고 left, right를 선정하고 양방향으로 오게 만들었습니다. 그런데 이때 문자가 다를 경우 left, right에 해당하는 문자를 각각 삭제해보고 안되면, 다시 돌아가는 방식 백트래킹 을 생각했고 재귀 로 풀고자 했습니다. 아래의 코드로 풀면 답은 잘 나오는 거 같지만, 제출하면 메모리 초과가 발생합니다. 제가 재귀의 개념을 잘 이해하지 못한 거 같은데, 이렇게 풀면 브루트포스 풀이가 되어서 정답이 아닌걸까요? 그렇다면 해당 문제에서 '투포인터를 사용했을 때'와 저처럼 '재귀로 풀었을 때'의 큰 차이점이 무엇인지 궁금합니다..! 질문 받아주셔서 감사합니다:) import sys sys.setrecursionlimit(10**6) # 재귀 깊이 제한 늘리기 def recursion(value, left, right, count): global T # base if count > 1: return 2 if left >= right: return count # recursive if value[left] == value[right]: return recursion(value, left+1, right-1, count) else: # 1. right를 옮겨보기 skip_right = recursion(value, left, right-1, count+1) if skip_right == 1: return 1 # 2. left를 옮겨보기 skip_left = recursion(value, left+1, right, count+1) if skip_left == 1: return 1 return 2 T = int(input()) # 문자열 개수 arr = [input() for _ in range(T)] for value in arr: left = 0 right = len(value)-1 print(recursion(value, left, right, 0))

  • python
  • 코딩-테스트
  • 알고리즘
jinii915 댓글 3 좋아요 0 조회수 169

인기 태그

인프런 TOP Writers

주간 인기글