Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Getting Error when trying to build #1

Copy link
Copy link
@ugnmura

Description

@ugnmura
Issue body actions

When I try to build this project I get the following error:

✔ Running plugin Prisma
✔ Running plugin Model Metadata
✔ Running plugin Access Policy
✔ Running plugin tRPC

👻 All plugins completed successfully!
info  - Loaded env from /home/eugene/coding/hobby/ts/cloned/sample-todo-trpc/.env
info  - Linting and checking validity of types ...Failed to compile.

./server/routers/generated/schemas/objects/ListCreateOrConnectWithoutOwnerInput.schema.ts:9:7
Type error: Type 'ZodObject<{ where: ZodLazy<ZodType<Omit<ListWhereUniqueInput, "zenstack_transaction" | "zenstack_guard">, ZodTypeDef, Omit<ListWhereUniqueInput, "zenstack_transaction" | "zenstack_guard">>>; create: ZodUnion<...>; }, "strict", ZodTypeAny, { ...; }, { ...; }>' is not assignable to type 'ZodType<Omit<ListCreateOrConnectWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">, ZodTypeDef, Omit<ListCreateOrConnectWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">>'.
  The types of '_type.create' are incompatible between these types.
    Type '(Omit<ListCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard"> | Omit<ListUncheckedCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">) & (Omit<...> | ... 1 more ... | undefined)' is not assignable to type '(Without<ListCreateWithoutOwnerInput, ListUncheckedCreateWithoutOwnerInput> & ListUncheckedCreateWithoutOwnerInput) | (Without<...> &
ListCreateWithoutOwnerInput)'.
      Type 'Omit<ListCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard"> & Omit<ListUncheckedCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">' is not assignable to type '(Without<ListCreateWithoutOwnerInput, ListUncheckedCreateWithoutOwnerInput> & ListUncheckedCreateWithoutOwnerInput) | (Without<...> & ListCreateWithoutOwnerInput)'.
        Type 'Omit<ListCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard"> & Omit<ListUncheckedCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">' is not assignable to type 'Without<ListUncheckedCreateWithoutOwnerInput, ListCreateWithoutOwnerInput> & ListCreateWithoutOwnerInput'.
          Type 'Omit<ListCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard"> & Omit<ListUncheckedCreateWithoutOwnerInput, "zenstack_transaction" | "zenstack_guard">' is not assignable to type 'Without<ListUncheckedCreateWithoutOwnerInput, ListCreateWithoutOwnerInput>'.
            Types of property 'spaceId' are incompatible.
              Type 'string' is not assignable to type 'undefined'.

   7 | import type { Prisma } from '@prisma/client';
   8 |
>  9 | const Schema: z.ZodType<
     |       ^
  10 |   Omit<
  11 |     Prisma.ListCreateOrConnectWithoutOwnerInput,
  12 |     'zenstack_transaction' | 'zenstack_guard'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.