Skip to content

How to debug Console not loading all modules? #2745

Answered by jelling
jelling asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beerose
Comment options

Answer selected by beerose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants