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

Library not compatible with Apollo Subgraph >=4.8.0 #247

Open
rddmoreira opened this issue Aug 19, 2024 · 0 comments
Open

Library not compatible with Apollo Subgraph >=4.8.0 #247

rddmoreira opened this issue Aug 19, 2024 · 0 comments

Comments

@rddmoreira
Copy link

rddmoreira commented Aug 19, 2024

👋
I was planning to use this on a personal project, but I just found a compatibility issue.
Apparently only on apollo subgraph versions equal or higher than 4.8. Not sure if someone else already identified this, or not.

Frameworks:

  • Node 20.10
  • Apollo Subgraph >= 4.8

Typescript build stacktrace

Type 'import("/node_modules/@apollo/server/dist/cjs/externalTypes/plugins").ApolloServerPlugin<import("/src/modules/context", { with: { "resolution-mode": "import" } }).Context>' is not assignable to type 'import("/node_modules/@apollo/server/dist/esm/externalTypes/plugins", { with: { "resolution-mode": "import" } }).ApolloServerPlugin<import("/src/modules/context", { with: { "resolution-...'.
  Types of property 'requestDidStart' are incompatible.
    Type '((requestContext: import("/node_modules/@apollo/server/dist/cjs/externalTypes/requestPipeline").GraphQLRequestContext<import("/src/modules/context", { with: { "resolution-mode": "import...' is not assignable to type '((requestContext: import("/node_modules/@apollo/server/dist/esm/externalTypes/requestPipeline", { with: { "resolution-mode": "import" } }).GraphQLRequestContext<import("/src/modules/con...'.
      Type '(requestContext: import("/node_modules/@apollo/server/dist/cjs/externalTypes/requestPipeline").GraphQLRequestContext<import("/src/modules/context", { with: { "resolution-mode": "import"...' is not assignable to type '(requestContext: import("/node_modules/@apollo/server/dist/esm/externalTypes/requestPipeline", { with: { "resolution-mode": "import" } }).GraphQLRequestContext<import("/src/modules/cont...'.
        Types of parameters 'requestContext' and 'requestContext' are incompatible.
          Type 'import("/node_modules/@apollo/server/dist/esm/externalTypes/requestPipeline", { with: { "resolution-mode": "import" } }).GraphQLRequestContext<import("/src/modules/context", { with: { "...' is not assignable to type 'import("/node_modules/@apollo/server/dist/cjs/externalTypes/requestPipeline").GraphQLRequestContext<import("/src/modules/context", { with: { "resolution-mode": "import" } }).Context>'.
            The types of 'request.http' are incompatible between these types.
              Type 'import("/node_modules/@apollo/server/dist/esm/externalTypes/http", { with: { "resolution-mode": "import" } }).HTTPGraphQLRequest | undefined' is not assignable to type 'import("/node_modules/@apollo/server/dist/cjs/externalTypes/http").HTTPGraphQLRequest | undefined'.
                Type 'import("/node_modules/@apollo/server/dist/esm/externalTypes/http", { with: { "resolution-mode": "import" } }).HTTPGraphQLRequest' is not assignable to type 'import("/node_modules/@apollo/server/dist/cjs/externalTypes/http").HTTPGraphQLRequest'.
                  Types of property 'headers' are incompatible.
                    Type 'import("/node_modules/@apollo/server/dist/esm/utils/HeaderMap", { with: { "resolution-mode": "import" } }).HeaderMap' is not assignable to type 'import("/node_modules/@apollo/server/dist/cjs/utils/HeaderMap").HeaderMap'.
                      Types have separate declarations of a private property '__identity'.

createApollo4QueryValidationPlugin(),
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

1 participant