You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.
Hello! I came across the article on learn.pusher.com recently. I wanted to let you know that the backend will not run properly when used with the current versions of Apollo Server. Attempting to run this with NPM 6.7 gave very little guidance, but when I used Yarn 1.15 to try again, I got the following error messages:
$ node ./bin/www
/home/user/WebDev/React/pusher-mud-backend/app.js:23
app.use('/graphql', apollo.graphqlExpress({ schema: graphqlSchema }));
^
TypeError: apollo.graphqlExpress is not a function
at Object.<anonymous> (/home/user/WebDev/React/pusher-mud-backend/app.js:23:28)
at Module._compile (internal/modules/cjs/loader.js:805:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Module.require (internal/modules/cjs/loader.js:711:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/home/user/WebDev/React/pusher-mud-backend/bin/www:7:11)
at Module._compile (internal/modules/cjs/loader.js:805:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This seems to have something to do with the differences between Apollo Graphql versions 1.0 and 2.0 - I am using 2.4.8 at the moment. I am new to the software and have just started to research, but this site talks about the differences: Migration to 2.0.
Thanks for the great article!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello! I came across the article on learn.pusher.com recently. I wanted to let you know that the backend will not run properly when used with the current versions of Apollo Server. Attempting to run this with NPM 6.7 gave very little guidance, but when I used Yarn 1.15 to try again, I got the following error messages:
This seems to have something to do with the differences between Apollo Graphql versions 1.0 and 2.0 - I am using 2.4.8 at the moment. I am new to the software and have just started to research, but this site talks about the differences: Migration to 2.0.
Thanks for the great article!
The text was updated successfully, but these errors were encountered: