MSW graphqlFetcher 에러 관련
476
2 câu hỏi đã được viết
MSW 강의 중 graphqlFetcher 에러 관련하여 문의 드립니다.
1.product 폴더 - index.ts
위와 같은 오류와 빨간 줄에 커서를 올리면
==================================
No overload matches this call.
Overload 1 of 3, '(queryKey: QueryKey, options?: Omit<UseQueryOptions<Product[], unknown, Product[], QueryKey>, "queryKey"> | undefined): UseQueryResult<...>', gave the following error.
Type '() => Promise<unknown>' has no properties in common with type 'Omit<UseQueryOptions<Product[], unknown, Product[], QueryKey>, "queryKey">'.
Overload 2 of 3, '(queryKey: QueryKey, queryFn: QueryFunction<Product[], QueryKey>, options?: Omit<UseQueryOptions<Product[], unknown, Product[], QueryKey>, "queryKey" | "queryFn"> | undefined): UseQueryResult<...>', gave the following error.
Type 'Promise<unknown>' is not assignable to type 'Product[] | Promise<Product[]>'.
Type 'Promise<unknown>' is not assignable to type 'Promise<Product[]>'.
Type 'unknown' is not assignable to type 'Product[]'.ts(2769)
types.d.ts(9, 89): The expected type comes from the return type of this signature.
================================
타입에 대한 문제 일까요?
위와 관련된 코드 들은 문제 없이 입력한 것 같습니다.
graphql 폴더 안 product.ts
queryClient.ts
무엇이 잘 못된 것일까요ㅠ
Câu trả lời 1
장바구니 담기 버튼 누르면 404에러가 뜹니다
0
252
1
[useRoutes, React-Query 오류 해결방법] No QueryClient set, use QueryClientProvider to set one 에러 나시는 분 보세요 !!!
4
1208
2
깃허브에서 선생님께서 올리신 파일 받아,, 실행시켜보려했으나 안됩니다
0
342
1
상품목록페이지만들기에서 ... 막힙니다..
0
406
1
강의 시점과 지금시점이 꽤 달라진게 있는거 같아요
0
499
1
상품목록 불러오기, 장바구니 삭제 에러 질문 드립니다
0
410
1
graphqlFetcher 관련 에러와 , data 객체 정의 되지 않는 오류 질문 드립니다
0
571
2
productdetail 데이터 안불러와지고 있습니다.
1
445
1
query 에러 발생했습니다.
1
538
1
react typescript vite 설치시 오류 질문드립니다.
0
1794
2
섹션1의 1강 routes.tsx에서 에러가 발생합니다
0
809
2
routes.tsx에서 질문이 있습니다!
1
576
1
vite-plugin-next-react-router
0
1472
3
grahpqlFetcher 설명가능할까요
1
499
1
msw mocking enabled
1
787
2
[기술 질문아님]
0
551
2
products 라우팅은 되는데 cart 라우팅은 안되네요 ㅠ
0
582
2
caught Error: No QueryClient set, use ueryClientProvider 에러
13
1965
3
Heroku build관련 오류가 발생해 글 남깁니다 ㅠㅠ
0
702
1
firebase filterling 관련 질문
0
560
3
body가 json 형태가 아닌 ReadableStream 형태로 찍힙니다.
0
781
1
graphqlFetcher 관련 에러가 해결이 안됩니다. ㅠㅠ
1
663
3
graphql-tag, graphql-request 패키지를 사용하는 이유가 궁금합니다.
0
785
1
1일차 fetch api 진행 시 CORS 에러
0
1043
2

