graphql-boilerplates / typescript-graphql-server

Boilerplate code for scalable, production-ready GraphQL servers written in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generator prisma-binding is not installed.

marktani opened this issue · comments

When I run graphql create --boilerplate typescript-advance, I get a lot of output, including this error:

post-deploy:
project database - Schema file was updated: src/generated/prisma.graphql

Running graphql get-schema --project database ✔
Generator prisma-binding is not installed. Please install prisma-binding version > 2.x to use "graphql codegen"

Running graphql codegen 

This looks like something needs to be adjusted in https://github.com/graphql-boilerplates/graphql-boilerplate-install.

I think the problem occurs due to this error that happens before:

node:48077) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security
 and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
error upath@1.0.2: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module

my node version v10.4.0

@nikolasburk cannot reproduce and has prisma-binding globally installed. Maybe this is the problem?

I couldn't reproduce the problem. I have node v.10.4.0. prisma-binding is a dependency.

This is now fixed. It was an issue with an outdated yarn.lock file.