[에러대백과] visitFn.call is not a function

2023. 1. 24. 16:55WEB Dev/에러대백과

728x90

GraphQL과 타입스크립트로 개발하는 웹서비스 작업 중

 

클라이언트 측 graphql -  GraphQL Code Generate 세팅에서 visitFn.call is not a function 에러 발생

 

기존 GraphQL 버전 16.6.0에서 15.7.2로 다운그레이드 하고 해결

 

현재 GraphQL 및 Codegen의 버전은 아래와 같음

 "dependencies": {
    "@apollo/client": "^3.7.3",
    "@chakra-ui/react": "^2.4.6",
    "@emotion/react": "^11.0.0",
    "@emotion/styled": "^11.0.0",
    "@graphql-codegen/add": "^2.0.2",
    "@graphql-codegen/cli": "^1.21.8",
    "@graphql-codegen/typescript": "^1.23.0",
    "@graphql-codegen/typescript-operations": "^1.18.4",
    "@graphql-codegen/typescript-react-apollo": "^2.3.1",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.0.1",
    "@testing-library/user-event": "^14.1.0",
    "@types/jest": "^28.1.1",
    "@types/node": "^12.0.0",
    "@types/react": "^18.0.9",
    "@types/react-dom": "^18.0.4",
    "framer-motion": "^6.2.9",
    "graphql": "^15.7.2",
    "react": "^18.1.0",
    "react-dom": "^18.1.0",
    "react-icons": "^3.0.0",
    "react-scripts": "5.0.1",
    "typescript": "^4.6.3",
    "web-vitals": "^2.1.4"
  },

728x90