inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

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

mockZustand

해결됨

실무에 바로 적용하는 프런트엔드 테스트 - 1부. 테스트 기초: 단위・통합 테스트

안녕하세요. 강의 너무 잘 보고 있습니다. 한 가지 궁금한 점이 있어서 QnA남깁니다. // __mocks__/zustand.js const { create: actualCreate } = await vi.importActual('zustand'); import { act } from '@testing-library/react' const storeResetFns = new Set(); export const create = createState => { const store = actualCreate(createState); const initialState = store.getState(); storeResetFns.add(()=>store.setState(initialState,true)); return store; } beforeEach(() => { act(() => storeResetFns.forEach(resetFn => resetFn())); }); 위의 __mocks__/zustand.js 에서 reset할 때 true를 사용하는 건 이해가 됩니다. 그런데 아래의 mockZustandStore 에서 replace:true 를 넣었는데 왜 넣어줬는지가 궁금합니다. const mockStore = (hook, state) => { const initStore = hook.getState(); hook.setState({ ...initStore, ...state }, true); }; export const mockUseUserStore = state => { mockStore(useUserStore, state); }; replace:true는 완전히 해당 store에 대한 상태,함수들을 교체 하는것으로 알고 있습니다. 넣어준 의도 또는 이유가 있을까요?? 안 넣어주면 생기는 문제들이 있었기 때문에 replace:true로 한건지 관례로 넣었던 건지

  • javascript
  • react
  • 소프트웨어-테스트
  • vitest
Coi 댓글 2 좋아요 0 조회수 89

리액트 개정판 교재 질문

해결됨

한 입 크기로 잘라 먹는 리액트(React.js) : 기초부터 실전까지

리액트 개정판 교재 질문이 있습니다. 설치를 예전 책 버전에 CRA로 설치를 했는데 개정판은 VITE로 설치를 하나요 그리고 예제도 책이랑 공유되는지 궁금합니다. 여러가지로 강의랑 비슷하면 책도 구매할겁니다!

  • javascript
  • react
  • node.js
ymckh1005 댓글 2 좋아요 0 조회수 95

강의에서 작성한 코드 제공 문의

해결됨

초당 500,000+건 트래픽을 처리하는 카카오 면접관의 Redis

강의에서 작성된 코드를 제공해주시는 것 같은데 어디서 볼 수 있나요?

  • javascript
  • docker
  • redis
  • backend
rbqhd9709 댓글 1 좋아요 1 조회수 153

Docker 에서 n8n 실행 후 connection lost

해결됨

[인프런어워드 베스트셀러] 코딩 없이 AI 자동화 전문가가 되는 법, n8n 완벽 가이드

안녕하세요. Docker 설치(CPU) 를 완료하고, N8N 실행을 해서 따라가보려고 하는데, N8N 에 Connection Lost 가 지속적으로 뜨고 있습니다. ㅠㅠ DOCKER 만 보면 연결은 되어있는것 같은데, 문제점이 무엇일까요? 아래 다른질문을 참고하여, 시스템 부팅을 해도 동일한 증상이고, docker logs n8n --tail=100 입력시, 아래와 같이 나옵니다. 무엇을 확인해야할까요? Initializing n8n process Error tracking disabled because this release is older than 6 weeks. n8n ready on ::, port 5678 There are deprecations related to your environment variables. Please take the recommended actions to update your configuration: - N8N_RUNNERS_ENABLED -> Running n8n without task runners is deprecated. Task runners will be turned on by default in a future version. Please set N8N_RUNNERS_ENABLED=true to enable task runners now and avoid potential issues in the future. Learn more: https://docs.n8n.io/hosting/configuration/task-runners/ - N8N_BLOCK_ENV_ACCESS_IN_NODE -> The default value of N8N_BLOCK_ENV_ACCESS_IN_NODE will be changed from false to true in a future version. If you need to access environment variables from the Code Node or from expressions, please set N8N_BLOCK_ENV_ACCESS_IN_NODE=false. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/ - N8N_GIT_NODE_DISABLE_BARE_REPOS -> Support for bare repositories in the Git Node will be removed in a future version due to security concerns. If you are not using bare repositories in the Git Node, please set N8N_GIT_NODE_DISABLE_BARE_REPOS=true. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/ [license SDK] Skipping renewal on init: license cert is not initialized Collaboration features are disabled because push is configured unidirectional. Use N8N_PUSH_BACKEND=websocket environment variable to enable them. Version: 1.123.7 Editor is now accessible via: http://localhost:5678 Owner was set up successfully Origin header does NOT match the expected origin. (Origin: "undefined" -> "N/A", Expected: "undefined" -> "undefined", Protocol: "undefined") ResponseError: Invalid origin! at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10) at /usr/local/lib/node_modules/n8n/src/push/index.ts:99:10 at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/lib/layer.js:152:17) at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:342:13) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:297:9 at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:582:12) at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:291:5) at /usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:144:18 at processTicksAndRejections (node:internal/process/task_queues:105:5) Origin header does NOT match the expected origin. (Origin: "undefined" -> "N/A", Expected: "undefined" -> "undefined", Protocol: "undefined") ResponseError: Invalid origin! at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10) at /usr/local/lib/node_modules/n8n/src/push/index.ts:99:10 at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/lib/layer.js:152:17) at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:342:13) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:297:9 at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:582:12) at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:291:5) at /usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:144:18 at processTicksAndRejections (node:internal/process/task_queues:105:5) Origin header does NOT match the expected origin. (Origin: "undefined" -> "N/A", Expected: "undefined" -> "undefined", Protocol: "undefined") ResponseError: Invalid origin! at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10) at /usr/local/lib/node_modules/n8n/src/push/index.ts:99:10 at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/lib/layer.js:152:17) at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:342:13) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:297:9 at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:582:12) at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:291:5) at /usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:144:18 at processTicksAndRejections (node:internal/process/task_queues:105:5) Last session crashed Initializing n8n process Error tracking disabled because this release is older than 6 weeks. n8n ready on ::, port 5678 There are deprecations related to your environment variables. Please take the recommended actions to update your configuration: - N8N_RUNNERS_ENABLED -> Running n8n without task runners is deprecated. Task runners will be turned on by default in a future version. Please set N8N_RUNNERS_ENABLED=true to enable task runners now and avoid potential issues in the future. Learn more: https://docs.n8n.io/hosting/configuration/task-runners/ - N8N_BLOCK_ENV_ACCESS_IN_NODE -> The default value of N8N_BLOCK_ENV_ACCESS_IN_NODE will be changed from false to true in a future version. If you need to access environment variables from the Code Node or from expressions, please set N8N_BLOCK_ENV_ACCESS_IN_NODE=false. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/ - N8N_GIT_NODE_DISABLE_BARE_REPOS -> Support for bare repositories in the Git Node will be removed in a future version due to security concerns. If you are not using bare repositories in the Git Node, please set N8N_GIT_NODE_DISABLE_BARE_REPOS=true. Learn more: https://docs.n8n.io/hosting/configuration/environment-variables/security/ [license SDK] Skipping renewal on init: license cert is not initialized Collaboration features are disabled because push is configured unidirectional. Use N8N_PUSH_BACKEND=websocket environment variable to enable them. Version: 1.123.7 Editor is now accessible via: http://localhost:5678 Origin header does NOT match the expected origin. (Origin: "undefined" -> "N/A", Expected: "undefined" -> "undefined", Protocol: "undefined") ResponseError: Invalid origin! at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10) at /usr/local/lib/node_modules/n8n/src/push/index.ts:99:10 at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/lib/layer.js:152:17) at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:342:13) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:297:9 at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:582:12) at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/router@2.2.0/node_modules/router/index.js:291:5) at /usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:144:18 at processTicksAndRejections (node:internal/process/task_queues:105:5)

  • n8n
  • 인공지능(ai)
  • rag
  • ai-agent
석원 댓글 2 좋아요 0 조회수 183

revalidatePath 질문 있습니다.

미해결

타입스크립트로 배우는 Next.js 16+ 완전 정복 : 기초부터 최신 아키텍처까지

revalidatePath("/about", "page") 로 설정을 하고 테스트를 하다 보면 /about 페이지에서 재검증 버튼을 누르면 AboutLayout의 데이터 패칭 결과와 AboutPage의 데이터 패칭 결과가 함께 바뀌는 것과, /about/detail 페이지에서 재검증 버튼을 누르면 아무런 변화도 없는 이유가 revalidatePath의 첫 번째 인자로 설정된 "/about" 이 아닌 /about/detail 페이지에 접속해 있기 때문이라는 것까지는 이해했습니다. 하지만 detail 페이지에서 재검증을 누르고 about 페이지로 이동하면 즉시 AboutPage의 결과는 변하는데 AboutLayout의 결과는 변하지 않는데 이유가 뭔가요?

  • javascript
  • react
  • typescript
  • next.js
  • jwt
hwnii 댓글 2 좋아요 0 조회수 103

자료 공유 요청

미해결

정부 AI 정책 시대! 바이브코딩으로 만드는 공공데이터 AI 서비스 (Google AI Studio)

혹시 강의 1 40:30 에 나오는 GPT가 작성한 PRD 결과 공유 부탁드려도 될까요?

  • 업무-생산성
  • 인공지능(ai)
  • ai-agent
  • 바이브코딩
id_139 댓글 2 좋아요 0 조회수 84

혹시 오픈카톡 링크는 어디서 볼수 있을까요?

해결됨

네카라쿠배 면접관들이 직접 알려주는 코딩테스트 & 면접 실전 대비

혹시 오픈카톡 링크는 어디서 볼수 있을까요?

  • javascript
  • 면접
  • 기술면접
  • 알고리즘
  • data-structure
Troy 댓글 1 좋아요 0 조회수 103

잘못된 useEffect 사용?

미해결

[React 2부] 고급 주제와 훅

useEffect를 통해 setErros를 호출해서 errors 상태를 변경하고 있습니다. 상태를 변경하는 건 부수효과가 아니니까 useEffect에서 상태 업데이트는 잘못된 사용이 아닌가 해서요! 저것 때문에 렌더링이 두 번 되기도 하고, https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state 이 내용이랑 같은 내용인 것 같아서요!

  • javascript
  • react
  • 웹앱
  • React-Context
  • react-hooks
dev.mingyo 댓글 2 좋아요 1 조회수 123

MainLayout이 중첩되어 뜨는 문제

미해결

타입스크립트로 배우는 Next.js 16+ 완전 정복 : 기초부터 최신 아키텍처까지

혼자서도 해보고 '레이아웃 분리하기 - 풀이' 강의를 보고 똑같이 해도 (with-layout) 그룹에 생성한 Layout(MainLayout)은 아래와 같이 MainLayout 하위에 MainLayout이 또 있는 것처럼 뜨는데 이건 정상적인 건가요? (auth) 그룹에 생성한 Layout(AuthLayout)은 아래와 같이 AuthLayout이 하나만 있어서 어떤 게 정상인지, 원래 이런 건지 알고 싶습니다. 프로젝트 폴더 구조는 다음과 같습니다:

  • javascript
  • react
  • typescript
  • next.js
  • jwt
hwnii 댓글 2 좋아요 0 조회수 107

쿠키와 헤더

미해결

타입스크립트로 배우는 Next.js 16+ 완전 정복 : 기초부터 최신 아키텍처까지

죄송합니다 또 궁금한게 생겨서 여쭈어봅니다 ai에게 물어봐도 항상 이게 진짜 맞는건지 의문이 생겨서 만약 프론트 쪽에서만 next js 에서 헤더랑 쿠키에 접근을 할 일이 그렇게 있을가 하는 의문이 생겨서 질문드립니다. 백엔드가 기본적인 확인을해서 처리를 하고 권한 이나 그런건 api호출을 하면 되지않을가라는 의문이 들어 질문 남깁니다

  • javascript
  • react
  • typescript
  • next.js
  • jwt
JEOUNG WOOYOUNG 댓글 2 좋아요 0 조회수 88

uv sync 파이썬 버전문제 onnxruntime

미해결

LangGraph를 활용한 AI Agent 개발 (feat. MCP)

발생: uv sync 시 패키지 호환문제 발생 ➜ inflearn-langgraph-agent git:(main) uv sync Resolved 233 packages in 3ms error: Distribution onnxruntime==1.20.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform hint: You're using CPython 3.14 cp314 ), but onnxruntime (v1.20.1) only has wheels with the following Python ABI tags: cp313 , cp313t requires-python = "==3.13" 으로 3.13 버전 고정했더니 문제없이 설치되었습니다.

  • 프롬프트엔지니어링
  • llm
  • ai-agent
  • langgraph
  • mcp
이희원 댓글 2 좋아요 -1 조회수 185

31강. api 호출하면 결과를 1개만 받아옵니다.

해결됨

[인프런어워드 베스트셀러] 코딩 없이 AI 자동화 전문가가 되는 법, n8n 완벽 가이드

어떤 강의에 대한 질문인지 자세하게 알려주시면 답변을 드리는데 도움이 됩니다. 스크린샷 윈도우키 + 쉬프트키 + S(윈도우) 을 자세히 첨부하시면 답변 드리는데 많은 도움이 됩니다. 동영상 재생 관련 같은 인프런 서비스 관련 문의는 1:1 문의하기를 이용해 주세요. api 호출은 제대로 되는 듯 한데, 결과를 1개만 받아옵니다. 이유가 뭘까요...

  • n8n
  • 인공지능(ai)
  • rag
  • ai-활용-(ax)
  • ai-agent
juengwoo kang 댓글 2 좋아요 0 조회수 101

useEffect 의존성 질문

미해결

[React 2부] 고급 주제와 훅

부수 효과로 popstate event listener를 등록하는 부분에서 useEffect의 의존성 배열에 path값을 넣어주셨는데, 안 넣는게 맞는 거 아닌가요?

  • javascript
  • react
  • 웹앱
  • React-Context
  • react-hooks
dev.mingyo 댓글 2 좋아요 1 조회수 113

구지 react를 사용하는 이유가 그럼 있는가?

미해결

타입스크립트로 배우는 Next.js 16+ 완전 정복 : 기초부터 최신 아키텍처까지

안녕하세요 수코딩님 갑자기 의문이 든 생각인데 next js 는 보면 프레임워크라서 여러 기능을 제공하고 편리하게 사용할수있는것같습니다 seo문제도 해결해주고 무엇보다 use client를 사용하면 클라이언트 컴포넌트로서 작동도 되고요 근데 그럼 의문이 드는게 둘다 가능하고 선택가능한 next를 쓰는게 무조건 이득이 아닌가 라는 생각이 들엇습니다. 그냥 서버사이드쪽만 서버사이드 좀하고 리액트가 필요한쪽은 클라이언트 사이드 렌더링으로 하면 되는 이야기인것같아서요

  • javascript
  • react
  • typescript
  • next.js
  • jwt
JEOUNG WOOYOUNG 댓글 1 좋아요 0 조회수 115

3강 초대 이메일이 안옵니다

해결됨

OpenAI를 활용한 나만의 AI 에이전트 만들기 (Agent Builder, GPT-5, Chatkit, Cloudflare, MCP, Fine Tuning, CoT 등)

3강의 1:44 쯤에 설문 조사 링크 제출했는데 작성한 이메일에 초대 메일이 안옵니다. 조치 부탁드립니다.

  • openai
  • multi-agent
  • llm
  • fine-tuning
  • ai-agent
esg 댓글 3 좋아요 0 조회수 128

강의 들이 결제해야만 하는 강의만 구성된 겁니까

해결됨

업무 자동화, 내 업무에 AI를 도입하는 방법 [인프런 어워드 수상, AX]

강의 제목이 결제해야만 하는 걸로 알려주는 건만 있는 지는 모르고 결제를 했습니다.

  • make.com
  • 인공지능(ai)
  • ai-활용-(ax)
  • ai-agent
rugby nine 댓글 1 좋아요 0 조회수 112

프롬포트 챗붓

미해결

업무 자동화, 내 업무에 AI를 도입하는 방법 [인프런 어워드 수상, AX]

프롬포트 만든 거를 저는 어떻게 주는 가요

  • make.com
  • 인공지능(ai)
  • ai-활용-(ax)
  • ai-agent
rugby nine 댓글 2 좋아요 0 조회수 117

openclaw 실행 실패

해결됨

#1 OpenClaw: 나만의 AI 비서 만들기

"0-6. OpenClaw 설치하고 온보드 세팅하기"에 7:30 강의를 듣고 있는데요. Gateway service check filed: Error ~ 미디어가 없음이라는게 왜 뜨는 건지 그리고 openclaw를 시작하기 위해 openclaw gateway start, openclaw gateway run이라고 입력해야 하는 건 어떤 걸 보고 알수 있나요? 📢 질문을 작성하기 전에 꼭 읽어주세요! 📢 질문 전에 준비할 것 스스로 먼저 확인하기 같은 문제를 겪은 사람이 있는지 인터넷에서 검색해보세요. 대부분의 경우 비슷한 사례를 쉽게 찾을 수 있습니다. 오류와 코드를 다시 한번 점검하기 간단한 실수나 오타가 없는지 확인해보세요. (예: 변수 이름, 함수 호출 방식 등) 문제 상황 정리하기 본인이 겪고 있는 문제를 정확히 이해하고, 어떤 상황에서 발생하는지 메모해보세요. 질문 작성 시 유의할 점 간결하고 명확한 제목 문제를 한눈에 이해할 수 있도록 제목을 작성하세요. ("React에서 상태값 초기화 문제"처럼 구체적으로!) 상황 설명 포함 문제가 발생한 맥락과 이미 시도했던 해결 방법을 간략히 정리해서 알려주세요. 코드 공유 문제가 발생한 코드를 첨부하여 보여주세요. 강의 관련 질문 강의 내용과 관련된 질문이라면 문제가 발생한 강의의 시간이나 챕터를 반드시 적어주세요. 추가 안내사항 답변을 받으면 꼭 확인하고 감사 인사를 남겨주세요. 작은 반응도 답변자에게 큰 동기부여가 됩니다! 질문 게시판에서는 서로를 존중하며 커뮤니케이션해주세요. 강의 외적인 문의(예: 계정 문제, 결제 등)는 고객센터 를 이용해주세요. 여러분의 꼼꼼한 질문이 더욱 빠르고 정확한 답변으로 이어질 수 있습니다. 😊

  • linux
  • vmware
  • 인공지능(ai)
  • llm
  • ai-agent
  • openclaw
김대종 댓글 1 좋아요 0 조회수 722

Adaptive RAG 질문드립니다.

미해결

모두를 위한 대규모 언어 모델 LLM Part 5 - LangGraph로 나만의 AI 에이전트 만들기

안녕하세요 강사님, 강의 잘 듣고있습니다. 현재 Adaptive RAG 강의를 듣고있는데, 강의에서는 공식 문서에서 Adaptive RAG와 관련된 내용이 있어 그걸 예시로 들어주셨는데 확인해보니 해당 내용이 지금은 공식 문서에 없는 것 같습니다. Adaptive RAG 뿐만 아니라 강사님이 강의했던 내용중 지금은 공식 문서에 없는 내용들이 꽤 많은 것 같은데(Plan-and-Execute는 TodoListMiddleware로 연결되고 ReWOO, Reflection, Reflextion, STORM 등과 같은 내용은 공식 문서에 아예 없습니다..), 이런 내용들은 현재 시점에서는 잘 사용되지 않는 기술들이여서 그런걸까요? 그리고 예제에서 시스템 프롬프트를 항상 영어로 작성하시고 아래 한글로 번역된 내용을 주석으로 써주셨는데, 애초에 프롬프트를 한글로 작성하면 답변 품질에 차이가 많이날까요?

  • llm
  • langchain
  • rag
  • openai-api
  • ai-agent
  • langgraph
kim-jy 댓글 1 좋아요 0 조회수 127

인기 태그

인프런 TOP Writers

주간 인기글