Seeing this error when attempting to invoke my graphql function. I am using apollo-server-lambda
and it appears my function isn’t properly bundling my modules? I am also using netlify-lambda
to build my function.
Any ideas? You can find the source code here
8:42:18 PM: graphql invoked
8:42:18 PM: module initialization error: Error
at h (/var/task/graphql.js:7:58589)
at Module.w (/var/task/graphql.js:7:62368)
at Object.n.default [as buildSchemaFromTypeDefinitions] (/var/task/graphql.js:24:14936)
at Object.n.makeExecutableSchema (/var/task/graphql.js:7:88918)
at n.ApolloServer.initSchema (/var/task/graphql.js:24:18)
at new n.ApolloServerBase (/var/task/graphql.js:12:93382)
at new n.ApolloServer (/var/task/graphql.js:52:32264)
at Object.n.initialize (/var/task/graphql.js:7:188182)
at e.exports (/var/task/graphql.js:52:65429)
at Object.n.run (/var/task/graphql.js:52:65285)