GRANDstack on netlify in production unknown directive isAuthenticated

Hi, has anyone encountered the following
errorMessage: "Unknown directive "isAuthenticated".↵↵Unknown directive "isAuthenticated"."

Everything works fine in development. It happens in production when serving through netlify functions. Here is the trace:

  • 2: "Unknown directive "isAuthenticated"."
  • 3: " at assertValidSDL (/var/task/src/node_modules/graphql/validation/validate.js:108:11)"
  • 4: " at Object.buildASTSchema (/var/task/src/node_modules/graphql/utilities/buildASTSchema.js:71:34)"
  • 5: " at Object.buildSchemaFromTypeDefinitions (/var/task/src/node_modules/graphql-tools/dist/generate/buildSchemaFromTypeDefinitions.js:25:28)"
  • 6: " at makeExecutableSchema (/var/task/src/node_modules/graphql-tools/dist/makeExecutableSchema.js:26:29)"
  • 7: " at makeAugmentedExecutableSchema (/var/task/src/node_modules/neo4j-graphql-js/dist/augment/augment.js:152:49)"
  • 8: " at makeAugmentedSchema (/var/task/src/node_modules/neo4j-graphql-js/dist/index.js:348:53)"
  • 9: " at Object. (/var/task/src/build/functions/graphql/graphql.js:25:11)"
  • 10: " at Module._compile (internal/modules/cjs/loader.js:1137:30)"
  • 11: " at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)"
  • 12: " at Module.load (internal/modules/cjs/loader.js:985:32)"

Do you have any other code? How you're importing it? Etc. Might be helpful.

It is a starter project. Just added authentication with auth0.