Another issue i'm encountering is when trying to r...
# orm-help
h
Another issue i'm encountering is when trying to run the server, I get the following:
Copy code
node server/index.js 
/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113
                throw new Error("Directive " + directiveName + ": Couldn't find type " + directiveName + " in any of the schemas.");
                ^

Error: Directive pgTable: Couldn't find type pgTable in any of the schemas.
    at collectDirective (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:113:23)
    at Array.forEach (<anonymous>)
    at collectNewTypeDefinitions (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:47:34)
    at Object.completeDefinitionPool (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/definition.js:23:41)
    at Object.importSchema (/project/node_modules/graphql-yoga/node_modules/graphql-import/dist/index.js:87:41)
    at mergeTypeDefs (/project/node_modules/graphql-yoga/dist/index.js:402:37)
    at new GraphQLServer (/project/node_modules/graphql-yoga/dist/index.js:92:34)
    at Object.<anonymous> (/project/server/index.js:34:23)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
This is related to the output generated by
prisma introspect
command. I see the
@pgTable
attribute can't find it defined anywhere. Am I missing another dependency?
d
Interesting, can you please raise an issue in prisma repo with you schema if possible :)
h
Sure
d
Thanks!
d
Did this solve the issue for you already?