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

Getting Error when trying to build #1

Open
SushiWaUmai opened this issue Apr 3, 2023 · 1 comment
Open

Getting Error when trying to build #1

SushiWaUmai opened this issue Apr 3, 2023 · 1 comment

Comments

@SushiWaUmai
Copy link

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.
@SushiWaUmai
Copy link
Author

I assume something went wrong while generating the tRPC routes.

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