Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Failed to compile. #57

Open
rafaeuw opened this issue Nov 2, 2023 · 1 comment
Open

Failed to compile. #57

rafaeuw opened this issue Nov 2, 2023 · 1 comment

Comments

@rafaeuw
Copy link

rafaeuw commented Nov 2, 2023

rafael@pop-os:~$ yarn build
yarn run v1.22.19
warning ../../../package.json: No license field
$ npm-run-all build:schema build:next

void@0.5.1 build:schema
prisma generate --schema=prisma/schema.prisma

Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.6.0-dev.56) to ./node_modules/@prisma/client in 98ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)

import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

void@0.5.1 build:next
next build

info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
Failed to compile.

./node_modules/@prisma/client/runtime/library.d.ts:1305:35
Type error: '?' expected.

1303 |
1304 | export declare type GetFindResult<P extends OperationPayload, A> = Equals<A, any> extends 1 ? DefaultSelection

: A extends {

1305 | select: infer S extends object;
| ^
1306 | } & Record<string, unknown> | {
1307 | include: infer I extends object;
1308 | } & Record<string, unknown> ? {
info - Checking validity of types .ERROR: "build:next" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@AlphaNecron
Copy link
Owner

Broken dependencies, please downgrade prisma to original version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants