Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 13 support for graphql-upload #48

Open
heartyoh opened this issue Mar 20, 2020 · 2 comments
Open

Node 13 support for graphql-upload #48

heartyoh opened this issue Mar 20, 2020 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@heartyoh
Copy link
Contributor

[ 증상 ]

  • Node 13 이상
  • graphql-upload (파일업로드 기능) 오류
  • 아래 오류 발생

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

[ 원인 ]

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

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

  "resolutions": {
    "**/graphql-upload": "^9.0.0"
  }
@heartyoh heartyoh added the bug Something isn't working label Mar 20, 2020
@heartyoh heartyoh assigned ghost Mar 20, 2020
@heartyoh heartyoh added this to the 3.0 beta milestone Mar 20, 2020
@ghost
Copy link

ghost commented Mar 23, 2020

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

@ghost
Copy link

ghost commented Mar 23, 2020

MichalLytek/type-graphql#37 (comment)

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant