Whenever I uncomment the lines on author.js I get the following error:
/Users/xicombd/Code/taskq/taskq-api/node_modules/graphql/jsutils/invariant.js:20
throw new Error(message);
^
| function run(generator) { | |
| var iterator = generator(resume); | |
| var data = null, yielded = false; | |
| iterator.next(); | |
| yielded = true; | |
| check(); | |
| function check() { | |
| while (data && yielded) { |
| var express = require('express'), | |
| httpProxy = require('http-proxy'), | |
| app = express(); | |
| var proxy = new httpProxy.RoutingProxy(); | |
| function apiProxy(host, port) { | |
| return function(req, res, next) { | |
| if(req.url.match(new RegExp('^\/api\/'))) { | |
| proxy.proxyRequest(req, res, {host: host, port: port}); |