About <https://graphcool.slack.com/archives/C0MQJ6...
# prisma-whats-new
p
About https://graphcool.slack.com/archives/C0MQJ62NL/p1521128742000241, I take that back; even when I fall back to
graphql-yoga 1.5.2
I still get the same error…. now I’m unable to trace what caused this 😞
l
Do you have a
visitQuery
field or is
isAuthenticated
calling a fragment?
p
Neither, nor!
l
So where is it coming up with
visitQuery
from?
p
I really have no idea, I searched through my whole project… this name doesn’t even mean anything to me, and googling
SchemaDirectiveVisitor
produces very little results.
l
Have you sicked a debugger on it?
That would be my next move
p
sicked?
l
used
p
I’m trying. Already removing
directiveResolvers
from
new GraphQLServer
makes it work
The strangest thing is that it was working perfectly well yesterday! It must be related to a package update
I just can’t see where
SchemaDirectiveVisitor
might be… I’m actually using your version of
directiveResolvers
l
I'd set a debugger break point on the line and see what it says
p
I have a very strong feeling I’m screwing something up lol! After attempting to attach WebStorm to my
yarn debug
session and clicking on Debug, I get this:
Copy code
/usr/local/bin/node --inspect-brk=51945 /Users/Sammy/Projects/mblt-gql/src/index.ts
Debugger listening on <ws://127.0.0.1:51945/391c8961-cdce-4b4d-8454-281f3233eea7>
For help see <https://nodejs.org/en/docs/inspector>
Debugger attached.
/Users/Sammy/Projects/mblt-gql/src/index.ts:1
(function (exports, require, module, __filename, __dirname) { import { GraphQLServer } from 'graphql-yoga';
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at new Script (vm.js:51:7)
    at createScript (vm.js:136:10)
    at Object.runInThisContext (vm.js:197:10)
    at Module._compile (module.js:613:28)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Function.Module.runMain (module.js:690:10)
    at startup (bootstrap_node.js:194:16)
Waiting for the debugger to disconnect...

Process finished with exit code 1
which I believe is not right somehow!