Encountering a Typescript Error: Expected 0 Arguments But Received 1 When Instantiating ApolloServer Objects. The documentation specifies that it should only accept one parameter, and the code runs without errors so unsure why this warning is showing up from Typescript.
import { ApolloServer } from "@apollo/server";
import { startStandaloneServer } from "@apollo/server/standalone";
import { schema } from "./api/schema";
import ContextValue from "./api/context";
const server = new ApolloServer({
schema,
});
const { url } = await startStandaloneServer(server, {
listen: { port: 4000 },
context: async ({ req }) => new ContextValue({ req, server }),
});
console.log(`š Server ready at: ${url}`);