When building project, there is a lot of errors from node_modules/.prisma/client/index.d.ts
See original GitHub issueBug description
When building project, there is a lot of errors from node_modules/.prisma/client/index.d.ts in console. I’ve updated Prisma, Typescript, Node, NPM to latest version, like here said. But that’s not changing.
That’s errors:
node_modules/.prisma/client/index.d.ts:504:8 - error TS2300: Duplicate identifier
'CheckSelect'.
504 type CheckSelect<T, S, U> = T extends SelectAndInclude
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:1485:15 - error TS2300: Duplicate identifie
r 'CheckSelect'.
1485 export type CheckSelect = {
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:1915:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
1915 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:1942:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
1942 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2004:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2004 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2055:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2055 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2086:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2086 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2122:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2122 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2154:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2154 select?: CheckSelect | null
~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2184:14 - error TS2314: Generic type 'Check
Select' requires 3 type argument(s).
2184 select?: CheckSelect | null
~~~~~~~~~~~
Expected behavior
Not having errors
Prisma information
datasource db {
provider = "postgresql"
url = ""
}
generator client {
provider = "prisma-client-js"
}
model Check {
id Int @id @default(autoincrement())
uid String @db.VarChar(255)
status CheckStatus
discount Decimal
extra_charge Decimal
cashier Cashier @relation(fields: [cashierId], references: [id])
cashierId Int
Payment Payment[]
CheckDetails CheckDetails[]
}
enum CheckStatus {
Processing
Done
Error
}
model Payment {
id Int @id @default(autoincrement())
check Check @relation(fields: [checkId], references: [id])
checkId Int
sum Decimal
provided Decimal
remains Decimal
type PaymentType @relation(fields: [paymentTypeId], references: [id])
paymentTypeId Int
}
model PaymentType {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
Payment Payment[]
}
model CheckDetails {
id Int @id @default(autoincrement())
product_name String @db.VarChar(255)
discount Decimal
extra_charge Decimal
check Check @relation(fields: [checkId], references: [id])
checkId Int
unit Unit @relation(fields: [unitId], references: [id])
unitId Int
}
model Unit {
id Int @id @default(autoincrement())
code String @db.VarChar(255)
name String @db.VarChar(255)
CheckDetails CheckDetails[]
}
model Shift {
id Int @id @default(autoincrement())
uid String @db.VarChar(255)
datetime_opened DateTime
datetime_closed DateTime
cashier Cashier @relation(fields: [cashierId], references: [id])
cashierId Int
}
model OfflineSession {
id Int @id @default(autoincrement())
uid String @db.VarChar(255)
datetime_opened DateTime
datetime_closed DateTime
cashier Cashier @relation(fields: [cashierId], references: [id])
cashierId Int
offlineSesionId String @db.VarChar(128)
offlineSeed String @db.VarChar(128)
}
model Cashier {
id Int @id @default(autoincrement())
object Object @relation(fields: [objectId], references: [id])
objectId Int
register_number String @db.VarChar(255)
desk_number String @db.VarChar(255)
Check Check[]
Shift Shift[]
}
model Object {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
adress String @db.VarChar(255)
organization Organization @relation(fields: [organizationId], references: [id])
organizationId Int
cashiers Cashier[]
}
model Organization {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
objects Object[]
}
model Sellers {
id Int @id @default(autoincrement())
full_name String @db.VarChar(255)
IPN String @db.VarChar(255)
TIN String @db.VarChar(255)
cert Bytes
}
model Z_report {
id Int @id @default(autoincrement())
full_name String @db.VarChar(255)
IPN String @db.VarChar(255)
TIN String @db.VarChar(255)
cert Bytes
}
Environment & setup
- OS: Windows
- Database: PostgreSQL
- Node.js version: v16.5.0
Prisma Version
3.6.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Prisma Client
Prisma Client is an auto-generated, type-safe query builder generated based on the models and attributes of your Prisma schema.
Read more >How do I prevent VS 2022 to display typescript errors with ...
It build well but visual studio is showing a lot of errors (only on .dt.ts files from node_modules of the project and also...
Read more >Command Line Interface | RedwoodJS Docs
See Builds. Example. Running yarn redwood build without any arguments generates the Prisma client and builds both sides of your project:.
Read more >How To Build a REST API with Prisma and PostgreSQL
Prisma is an open-source ORM for Node.js and TypeScript. It consists of three main tools: Prisma Client: An auto-generated and type-safe query ...
Read more >What does it take to support Node.js ESM?
To add support ESM for Node.js, you have two alternatives: build your library into ESM Compatible modules with the extension .mjs , and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for that. But it worked)) Thank you
I still have a lot of errors. Github failed when I tried to paste them all, so this is the small part. There are 488!!