Skip to content

running without Apollo Engine causes an error #69

@derekjwilliams

Description

@derekjwilliams

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions