You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
...
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: