React-Query Cannot find module '../../../node_modules/use-sync-external-store/shim/index.js' 해결방안

밥하는중·2022년 7월 28일
0

React

목록 보기
3/5

Cannot find module '../../../node_modules/use-sync-external-store/shim/index.js'

라는 오류 해결방안

React-Query v4 에서는 import 방식이 바뀌었다

v4
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";

devtools 같은 경우도
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; 로 변경 되었다.

#ref
https://tanstack.com/query/v4/docs/installation

profile
공통기능으로 요령피우자

1개의 댓글

comment-user-thumbnail
2022년 7월 28일

아 ㅠㅠ 리액트 18로 작업하다가 이문제가 발생하여서 계속 서치중이였는데 .. 이렇게 하니까 바로되네요
좋은 정보 감사합니다 ^^ ~

답글 달기