-
Is there a process for debugging why
I've had this problem on multiple occasions and the cause is typically because of an issue that's also visible in Is there some way to run this in verbose mode? Launching |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I solved my problem. The issue was not with loading modules; they were all loading correctly, which I verified by debugging The mutation in question was not being loaded because it referenced an environment variable that was missing. This meant the code would compile via |
Beta Was this translation helpful? Give feedback.
I solved my problem. The issue was not with loading modules; they were all loading correctly, which I verified by debugging
repl.ts
. The real problem was that a mutation was not showing up in the console and I misinterpreted that as the modules not loading.The mutation in question was not being loaded because it referenced an environment variable that was missing. This meant the code would compile via
npm run build
but when console loads mutations it apparently evaluates the code in a run-time fashion even prior to the mutation. Unfortunately, though, if it fails due a missing ENV var it does so silently.