I'm trying to deploy to my VPS, after performing the build command and trying to run the transpiled code I get this error:
Error: Root typing path "...\api\dist\src\graphql\context.ts" for the type "context" does not exist
Code
The problem for what i can tell is because after the build is completed it cannot resolve the context.ts file marked as the context source file in the schema:
Issue
I'm trying to deploy to my VPS, after performing the build command and trying to run the transpiled code I get this error:
Code
The problem for what i can tell is because after the build is completed it cannot resolve the
context.ts
file marked as the context source file in the schema:After building the code the transpiled javascript is this:
Temporary solution
The temporary solution I came up with is simply to comment out the
contextType
property of the schema so that at least the code runs when deployed.Versions
I'm using: