-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Production install fails at runtime, missing @apollo/client peer dep #7786
Comments
Thanks for opening this issue!
|
@mtrezza i see in
What do you think about adding a new C that check that we do not have npm warnings on a production install ? This could avoid major outage in the futur 🙂 |
Sure, if we can find a reliable logic to check? A Could we just add a test that fails for "Install a parse-server in production mode and use graphql"? I mean, why didn't any of the GraphQL tests fail in the CI so far? Where did they get the |
@mtrezza if you check the PR you can see that @apollo/client is needed by graphql-tools Here i can't add a failing test since the bug is only reproducible with a Here i can admit it's hard to test, even my company CI do not catch the issue until we pushed the new docker image onto our staging env. |
May be an explicit whitelist could be provided on the tool that check the warnings ? |
Yes that may be the easiest way, not sure how maintainable that would be. Any other ideas? Not sure if that works, but how about installing with Added #7796 to discuss this further. |
New Issue Checklist
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
5.0.0-alpha.20
Docker Alpine
N/A
Database
N/A
N/A
N/A
Client
N/A
N/A
Logs
The text was updated successfully, but these errors were encountered: