inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

풀스택 리액트 라이브코딩 - 간단한 쇼핑몰 만들기

2일차 강의중 에러 문의 QueryClient

해결된 질문

517

Ucopy Theme

작성한 질문수 2

0

1일차까지는 강의를 잘따라가고 있었는데요.
2일차 들어서 에러가 발생합니다.
 
yarn run dev를 실행하면 아래와 같은 메시지가 나옵니다.
 
> Local: http://localhost:3000/ > Network: use `--host` to expose ready in 725ms. X [ERROR] Expected ";" but found "client" src/queryClient.ts:20:15: 20 │ retrun client │ ~~~~~~ ╵ ; Build failed with 1 error: src/queryClient.ts:20:15: ERROR: Expected ";" but found "client"
 
참고로 아래는 강의 따라가고 있는 깃허브 주소입니다.
 

https://github.com/ucoder-git/vowing-live/blob/main/shopping-mall/src/queryClient.ts

import { QueryClient } from 'react-query'

type AnyOBJ = { [key: string]: any }

export const getClient = (() => {
    let client: QueryClient | null = null
    return () => {
        if (!client)
        client = new QueryClient({
            defaultOptions: {
                queries: {
            cacheTime: 1000 * 60 * 60 * 24,
            staleTime: 1000 * 60,
            refetchOnMount: false,
            refetchOnReconnect: false,
            refetchOnWindowFocus: false,
          },
      },
        })
        retrun client
    }
})()
const BASE_URL = "https://fakestoreapi.com"

graphql react js firebase queryclient react-query

답변 1

0

정재남

retrun -> return

장바구니 담기 버튼 누르면 404에러가 뜹니다

0

253

1

[useRoutes, React-Query 오류 해결방법] No QueryClient set, use QueryClientProvider to set one 에러 나시는 분 보세요 !!!

4

1210

2

깃허브에서 선생님께서 올리신 파일 받아,, 실행시켜보려했으나 안됩니다

0

343

1

상품목록페이지만들기에서 ... 막힙니다..

0

407

1

강의 시점과 지금시점이 꽤 달라진게 있는거 같아요

0

500

1

상품목록 불러오기, 장바구니 삭제 에러 질문 드립니다

0

411

1

graphqlFetcher 관련 에러와 , data 객체 정의 되지 않는 오류 질문 드립니다

0

572

2

productdetail 데이터 안불러와지고 있습니다.

1

445

1

query 에러 발생했습니다.

1

538

1

react typescript vite 설치시 오류 질문드립니다.

0

1794

2

섹션1의 1강 routes.tsx에서 에러가 발생합니다

0

813

2

routes.tsx에서 질문이 있습니다!

1

576

1

vite-plugin-next-react-router

0

1475

3

grahpqlFetcher 설명가능할까요

1

501

1

msw mocking enabled

1

789

2

[기술 질문아님]

0

551

2

products 라우팅은 되는데 cart 라우팅은 안되네요 ㅠ

0

584

2

caught Error: No QueryClient set, use ueryClientProvider 에러

13

1970

3

Heroku build관련 오류가 발생해 글 남깁니다 ㅠㅠ

0

705

1

firebase filterling 관련 질문

0

568

3

body가 json 형태가 아닌 ReadableStream 형태로 찍힙니다.

0

785

1

graphqlFetcher 관련 에러가 해결이 안됩니다. ㅠㅠ

1

673

3

MSW graphqlFetcher 에러 관련

0

477

1

graphql-tag, graphql-request 패키지를 사용하는 이유가 궁금합니다.

0

790

1