Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
Missing apollo client peer dep from graphql tools, so a production install will fail at runtime if GraphQL is used
Steps to reproduce
Install a parse-server in production mode and use graphql
Actual Outcome
Error: Cannot find module '@apollo/client/link/core'
Require stack:
- /srv/app/node_modules/@graphql-tools/links/index.js
- /srv/app/node_modules/parse-server/lib/GraphQL/loaders/defaultGraphQLTypes.js
- /srv/app/node_modules/parse-server/lib/GraphQL/ParseGraphQLSchema.js
- /srv/app/node_modules/parse-server/lib/GraphQL/ParseGraphQLServer.js
- /srv/app/node_modules/parse-server/lib/ParseServer.js
- /srv/app/node_modules/parse-server/lib/index.js
- /srv/app/packages/dashboard-back/lib/src/server.js
- /srv/app/packages/dashboard-back/lib/index.js
Expected Outcome
Not to crash
Environment
Server
- Parse Server version:
5.0.0-alpha.20
- Operating system:
Docker Alpine
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
N/A
Database
- System (MongoDB or Postgres):
N/A
- Database version:
N/A
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
N/A
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
N/A
- SDK version:
N/A