things-factory / shell

things app starter kit
MIT License
3 stars 0 forks source link

Node 13 support for graphql-upload #48

Open heartyoh opened 4 years ago

heartyoh commented 4 years ago

[ 증상 ]

스크린샷 2020-03-20 오후 6 00 25

[ 원인 ]

스크린샷 2020-03-20 오후 9 07 21

[ 해결책 ] 파일업로드를 사용하는 어플리케이션의 package.json에 resolutions로 graphql-upload@9.0.0 또는 10.0.0 등으로 설정해야 함

  "resolutions": {
    "**/graphql-upload": "^9.0.0"
  }
ghost commented 4 years ago

https://github.com/apollographql/apollo-server/issues/3508

ghost commented 4 years ago

https://github.com/MichalLytek/type-graphql/issues/37#issuecomment-592467594

다른 해결 사례를 보면 apollo-server에서 upload 속성을 해제하고 graphql-upload를 따로 임포트해서 사용하는데, 그냥 apollo-server를 fork해서 사용하는 게 간단할 듯

이슈가 해결될 때까지 노드 버전을 12 LTS로 다운그레이드하여 사용하는 걸 권장