inflearn logo
강의

Course

Instructor

Full Stack React Live Coding - Creating a Simple Shopping Mall

2일차 강의중 에러 문의 QueryClient

Resolved

551

Ucopy Theme

2 asked

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

Answer 1

0

jaenam

retrun -> return

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

0

290

1

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

4

1281

2

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

0

402

1

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

0

459

1

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

0

538

1

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

0

456

1

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

0

622

2

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

1

479

1

query 에러 발생했습니다.

1

577

1

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

0

1846

2

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

0

857

2

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

1

614

1

vite-plugin-next-react-router

0

1532

3

grahpqlFetcher 설명가능할까요

1

550

1

msw mocking enabled

1

831

2

[기술 질문아님]

0

604

2

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

0

635

2

caught Error: No QueryClient set, use ueryClientProvider 에러

13

2036

3

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

0

755

1

firebase filterling 관련 질문

0

620

3

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

0

814

1

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

1

720

3

MSW graphqlFetcher 에러 관련

0

511

1

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

0

818

1