-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Error message:
[nodemon] starting 'babel-node -r node_modules/dotenv/config ./src' /moonhighway/snowtooth/node_modules/apollo-server-core/dist/ApolloServer.js:51 else if (typeof engine === 'object' && engine.apiKey) { ^TypeError: Cannot read property 'apiKey' of null
Simple fix, if not using Apollo Engine, is to comment out the engine value in new ApolloServer call in index.js, shown below
const server = new ApolloServer({ typeDefs, resolvers, context, // engine: process.env.ENGINE_API_KEY // ? { apiKey: process.env.ENGINE_API_KEY } // : null });
--
Thanks for the awesome hooks tutorial, very well done
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels