Your First GraphQL Server
Clay Allsopp


I really wanted to try this out but I’m unable to get babel-register to work. Every time I run node index.js, I get an error that npm Failed to load external module babel/register. So I did some research and it seems that you need babel-core/register in the index.js file

But now I get an error with the server.js:

import express from ‘express’;

SyntaxError: Unexpected reserved word

How do I get past this???

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.