I've encountered a never-ending stream of error messages post importing Apollo Server into my Typescript-based Node.js application. (Check out the screenshot below)
It appears that Apollo is unable to locate anything in the graphql
dependency. Could it be a Typescript configuration issue? If so, what could it possibly be?
Below is my configuration file, tsconfig.js
:
{
"compilerOptions": {
"target": "ES2022",
"lib": [
"ES2022"
],
"module": "CommonJS",
"moduleResolution": "node",
"esModuleInterop": true,
"outDir": "dist",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"types": ["node"],
"baseUrl": "./src",
"typeRoots": [
"src/customTypings",
"node_modules/@types"
],
},
"files": [
"./node_modules/@types/mocha/index.d.ts",
// "./node_modules/@types/node/index.d.ts"
],
"include": [
"src/**/*.ts",
"src/**/*.json",
"src/**/*.css",
"src/**/*.map",
"src/**/*.js",
"src/**/*.svg",
"src/public/**/*",
],
"exclude": [
"node_modules"
]
}