Save 블로그

  • 홈
  • 태그
  • 방명록

type 2

[zod] 타입추론 unknown

'Resolverunknown; career: unknown; profileImage?: string | undefined; }, any, { name: string; birthDate: string; gender: string | null; phoneNumber: string; position: string[]; career: string; profileImage?: string | undefined; }>' 형식은'Resolver' 형식에 할당할 수 없습니다. RHF의 useForm을 사용하면서 zod 스키마의 타입추론이 엉뚱한 unknown으로 나오는 문제가 생겼다해당 값들 공통적으로 z.preprocess로 묶어준 상태라는 점이다 devLanguage: preprocessArrayFormField..

오류노트 2025.08.02

[Next.js] PageProps - params 비동기 호출

Type error: Type 'UserInfoPageProps' does not satisfy the constraint 'PageProps'. Types of property 'params' are incompatible. Type '{ userid: string; }' is missing the following properties from type 'Promise': then, catch, finally, [Symbol.toStringTag]build를 하면서 app/.../page.tsx 에서 타입에러가 난다 interface UserInfoPageProps { params: { userid: string };}export default async function UserInfoPa..

오류노트 2025.08.01
이전
1
다음
더보기
프로필사진

Save 블로그

엉성한 글솜씨로 전쟁중인 블로그

  • 분류 전체보기 (36)
    • 개발로직 (0)
    • 정리박스 (2)
    • 소소정보 (4)
    • 오류노트 (8)
    • OZ (20)
    • test (0)
    • 마인크래프트 (0)

Tag

next.js, css, fetch, Router, media, useState, react-hook-form, type, NavLink, tailwindcss, Zod, js-cookie, localStorage, build, error, useNavigate, RHF, Props, React, EISDIR,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바