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

Can not run with apollo-server@3 #19

Open
heeju opened this issue Jul 27, 2021 · 7 comments
Open

Can not run with apollo-server@3 #19

heeju opened this issue Jul 27, 2021 · 7 comments

Comments

@heeju
Copy link

heeju commented Jul 27, 2021

I upgraded apollo-server-express to 3.0.2
then, I ran test with apollo-server-integration-testing and got the error.

error TS2740: Type 'ApolloServer<ExpressContext>' is missing the following properties from type 'ApolloServer': supportsSubscriptions, supportsUploads, setGraphQLPath, willStart, and 2 more.

    14       apolloServer
             ~~~~~~~~~~~~

      node_modules/apollo-server-integration-testing/dist/index.d.ts:9:5
        9     apolloServer: ApolloServer;
              ~~~~~~~~~~~~
        The expected type comes from property 'apolloServer' which is declared here on type 'TestClientConfig'
@thmsobrmlr
Copy link

Can you try my pull request #20 and provide feedback?

@1garo
Copy link

1garo commented Nov 12, 2021

Being having the same problem.
@Thomas88 if you guide me on how to point the version of the lib to yours I can test, it has being a block for a week now

@thmsobrmlr
Copy link

@1garo As end user I think the most simple solution is to add the following in package.json:

  "resolutions": {
    "apollo-server-express": "3.1.2",
  }

@1garo
Copy link

1garo commented Nov 12, 2021

I continue with the following type error:

image

@adamwdennis
Copy link

I'm also getting the above errors with [email protected]

@ghost
Copy link

ghost commented Feb 8, 2022

Yeah I'm getting this too, any idea when the fix will come as it's blocking us from upgrading?

@yasharma
Copy link

yasharma commented Mar 2, 2022

i was facing the same issue and fixed by following this #20 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants