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
👋
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(),
The text was updated successfully, but these errors were encountered:
👋
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:
Typescript build stacktrace
The text was updated successfully, but these errors were encountered: