Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run "yarn prisma deploy" - Fails on post deploy hooks #394

Open
kevineger opened this issue Nov 8, 2018 · 0 comments
Open

Unable to run "yarn prisma deploy" - Fails on post deploy hooks #394

kevineger opened this issue Nov 8, 2018 · 0 comments

Comments

@kevineger
Copy link

PS > yarn prisma deploy
yarn run v1.12.1
warning ..\..\package.json: No license field
$ prisma deploy
Deploying service `default` to stage `default` to server `local` 78ms
Service is already up to date.

post-deploy:
spawnSync graphql ENOENT
Running graphql get-schema -p prisma ×
spawnSync graphql ENOENT
Running graphql codegen ×
Done in 19.63s.

Note prisma deploy (without yarn) succeeds on the post deploy steps. However, in both cases when viewing the Prisma playground, the schema does not load (loading icon spins) and the application playground states "error": "Failed to fetch schema. Please check your connection"

I noticed that after hitting the playground url, there's a TypeScript compile error?

graphql-server-example\node_modules\ts-node\src\index.ts:261
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/resolvers/Query.ts(8,3): error TS2322: Type '(_parent: QueryParent, _args: {}, ctx: Context) => Promise<ExperienceNode[]>' is not assignable to type '(parent: QueryParent, args: {}, ctx: Context, info: GraphQLResolveInfo) => ExperienceParent[] | Promise<ExperienceParent[]>'.
  Type 'Promise<ExperienceNode[]>' is not assignable to type 'ExperienceParent[] | Promise<ExperienceParent[]>'.
    Type 'Promise<ExperienceNode[]>' is not assignable to type 'Promise<ExperienceParent[]>'.
      Type 'ExperienceNode[]' is not assignable to type 'ExperienceParent[]'.
        Type 'ExperienceNode' is not assignable to type 'ExperienceParent'.
          Property 'location' is missing in type 'ExperienceNode'.
src/resolvers/Query.ts(11,38): error TS2322: Type 'Promise<PlaceNode[]>' is not assignable to type 'PlaceParent[] | Promise<PlaceParent[]>'.
  Type 'Promise<PlaceNode[]>' is not assignable to type 'Promise<PlaceParent[]>'.
    Type 'PlaceNode[]' is not assignable to type 'PlaceParent[]'.
      Type 'PlaceNode' is not assignable to type 'PlaceParent'.
        Property 'reviews' is missing in type 'PlaceNode'.
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant