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

UNMET PEER DEPENDENCY prisma@1.3.2 (graphql create error)

sshillyer opened this issue · comments

I have installed graphql-cli globally. I then run command:
graphql create foo
I select typescript-advanced OR typescript-basic and get the below error. I tried install prisma globally (npm install -g prisma) and this does not help.


`-- UNMET PEER DEPENDENCY prisma@1.3.2

npm WARN graphql-boilerplate-install@0.1.9 requires a peer of prisma@1.3.2 but none was installed.
npm WARN install@0.0.0 No description
npm WARN install@0.0.0 No repository field.
npm WARN install@0.0.0 No license field.
[graphql create] Running boilerplate install script...
×
Unexpected token (

The project folder is populated with at least some of the files.

Possibly unrelated, but the project in this state generates the following error (for advanced) immediately after starting with yarn dev:

Type "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.
Server is running on http://localhost:4000

And it looks like this for the basic project:

Type "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.
Server is running on http://localhost:4000
(node:13432) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: url_1.URL is not a constructor