cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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)"
3 REPLIES 3

MuddyBootsCode
Graph Steward

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.

Hi! Were you ever able to solve this issue? I've just run into it myself and it's confounding me.

John-Dag