Skip to content
Discussion options

You must be logged in to vote

Eager module code relying on side-effects is not supported by Nexus.

See:

For a workaround for now wrap your code like this:

// app.ts
if (!process.env.NEXUS_REFLECTION) {
  yourHeavyAsyncCode()
}

Reference graphql-nexus/nexus#732 (comment)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jasonkuhrt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants