Skip to content

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

Open
@kevineger

Description

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'.
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions