I decided to move the typeDefs into a separate file written in typescript and then compiled into another file.
Upon doing so, I encountered the following error:
node:internal/errors:490 ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Unable to locate module '/Users/pichsophaneatdy/Documents/Lush-To-Do-App/dist/graphql/schema' imported from /Users/pichsophaneatdy/Documents/Lush-To-Do-App/dist/index.js at new NodeError (node:internal/errors:399:5) at finalizeResolution (node:internal/modules/esm/resolve:231:11) at moduleResolve (node:internal/modules/esm/resolve:850:10) at defaultResolve (node:internal/modules/esm/resolve:1058:11) at nextResolve (node:internal/modules/esm/loader:164:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:419:18) at ModuleWrap. (node:internal/modules/esm/module_job:77:40) at link (node:internal/modules/esm/module_job:76:36) { code: 'ERR_MODULE_NOT_FOUND' }
Node.js version 19.4.0
TsConfig
Server.ts
Schema.ts