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
When upgrading latest @apollo/server : 4.7.5 result in error below:
No overload matches this call.
Overload 1 of 2, '(server: ApolloServer, options?: AzureFunctionsMiddlewareOptions): AzureFunction', gave the following error.
Argument of type 'import("../node_modules/@apollo/server/dist/esm/ApolloServer", { assert: { "resolution-mode": "import" } }).ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "impo...' is not assignable to parameter of type 'import("../node_modules/@apollo/server/dist/cjs/ApolloServer").ApolloServer<import("../node_modules/@apollo/server/dist/cjs/externalTypes/context").BaseContext>'.
Types have separate declarations of a private property 'internals'.
Overload 2 of 2, '(server: ApolloServer, options: WithRequired<AzureFunctionsMiddlewareOptions, "context">): AzureFunction', gave the following error.
Argument of type 'import("../node_modules/@apollo/server/dist/esm/ApolloServer", { assert: { "resolution-mode": "import" } }).ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "impo...' is not assignable to parameter of type 'import("../node_modules/@apollo/server/dist/cjs/ApolloServer").ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "import" } }).BaseContext>'.
Types have separate declarations of a private property 'internals'.
`const server = new ApolloServer({
schema,
introspection: !IS_PROD,
plugins: [ApolloServerPluginLandingPageDisabled()],
})
When upgrading latest @apollo/server : 4.7.5 result in error below:
No overload matches this call.
Overload 1 of 2, '(server: ApolloServer, options?: AzureFunctionsMiddlewareOptions): AzureFunction', gave the following error.
Argument of type 'import("../node_modules/@apollo/server/dist/esm/ApolloServer", { assert: { "resolution-mode": "import" } }).ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "impo...' is not assignable to parameter of type 'import("../node_modules/@apollo/server/dist/cjs/ApolloServer").ApolloServer<import("../node_modules/@apollo/server/dist/cjs/externalTypes/context").BaseContext>'.
Types have separate declarations of a private property 'internals'.
Overload 2 of 2, '(server: ApolloServer, options: WithRequired<AzureFunctionsMiddlewareOptions, "context">): AzureFunction', gave the following error.
Argument of type 'import("../node_modules/@apollo/server/dist/esm/ApolloServer", { assert: { "resolution-mode": "import" } }).ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "impo...' is not assignable to parameter of type 'import("../node_modules/@apollo/server/dist/cjs/ApolloServer").ApolloServer<import("../node_modules/@apollo/server/dist/esm/externalTypes/context", { assert: { "resolution-mode": "import" } }).BaseContext>'.
Types have separate declarations of a private property 'internals'.
`const server = new ApolloServer({
schema,
introspection: !IS_PROD,
plugins: [ApolloServerPluginLandingPageDisabled()],
})
const apolloHandler = startServerAndCreateHandler(server, {
context: async ({ context }) => {
const resolvedContext = await resolveContext(context.req)
return {
...resolvedContext,
}
},
})`
The text was updated successfully, but these errors were encountered: