apollo codegen 이와 같은 에러가 발생하였다.
yarn과 npm에서 graphql version이 달라서 발생하는 상황이다.
이 버전으로 node_modules과 yarn cache를 지우고 다시 설치하여 준다.
rm -rf node_modules
yarn cache clean
npm install
yarn install
근데 node 버전이 달라 다시 error가 발생하여 node version를 upgrade 하여 다시 설치하였다.
휴