We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I recieve two duplicated types which conflicts with each other and don't allow me to compile project. These errors appeared after update to 4.8.0.
Here are my errors
node_modules/.prisma/client/index.d.ts:1909:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionArgs'.
1909 export type DistributorSubscriptionArgs = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:1932:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
1932 export type DistributorSubscriptionBillingsArgs = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2929:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
2929 export type DistributorSubscriptionBillingsArgs = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2952:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionArgs'.
2952 export type DistributorSubscriptionArgs = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:3930:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
3930 export type DistributorSubscriptionBillingsArgs = { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 5 errors in the same file, starting at: node_modules/.prisma/client/index.d.ts:1909
Project should compile successfully
generator client { provider = "prisma-client-js" binaryTargets = ["native", "linux-musl"] previewFeatures = ["orderByNulls", "filteredRelationCount", "extendedWhereUnique"] }
datasource db { provider = "postgresql" url = env("DATABASE_URL") }
model Distributor { id String @id @default(uuid()) subscription DistributorSubscription[] subscriptionBillings DistributorSubscriptionBillings[] }
model DistributorSubscription { id String @id @default(uuid()) distributorId String distributor Distributor @relation(fields: [distributorId], references: [id], onDelete: Cascade) billings DistributorSubscriptionBillings[] }
model DistributorSubscriptionBillings { id String @id @default(uuid()) distributorId String distributor Distributor @relation(fields: [distributorId], references: [id], onDelete: Cascade) distributorSubscriptionId String distributorSubscription DistributorSubscription @relation(fields: [distributorSubscriptionId], references: [id], onDelete: Cascade) }
prisma : 4.8.0 @prisma/client : 4.8.0 Current platform : debian-openssl-1.1.x Query Engine (Node-API) : libquery-engine d6e67a83f971b175a593ccc12e15c4a757f93ffe (at node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node) Migration Engine : migration-engine-cli d6e67a83f971b175a593ccc12e15c4a757f93ffe (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x) Introspection Engine : introspection-core d6e67a83f971b175a593ccc12e15c4a757f93ffe (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x) Format Binary : prisma-fmt d6e67a83f971b175a593ccc12e15c4a757f93ffe (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x) Format Wasm : @prisma/prisma-fmt-wasm 4.8.0-61.d6e67a83f971b175a593ccc12e15c4a757f93ffe Default Engines Hash : d6e67a83f971b175a593ccc12e15c4a757f93ffe Studio : 0.479.0 Preview Features : orderByNulls, filteredRelationCount, extendedWhereUnique
The text was updated successfully, but these errors were encountered:
Duplicate of #17005. This is fixed in 4.8.1
4.8.1
Sorry, something went wrong.
No branches or pull requests
Bug description
I recieve two duplicated types which conflicts with each other and don't allow me to compile project. These errors appeared after update to 4.8.0.
Here are my errors
node_modules/.prisma/client/index.d.ts:1909:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionArgs'.
1909 export type DistributorSubscriptionArgs = {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:1932:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
1932 export type DistributorSubscriptionBillingsArgs = {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2929:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
2929 export type DistributorSubscriptionBillingsArgs = {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:2952:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionArgs'.
2952 export type DistributorSubscriptionArgs = {
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.prisma/client/index.d.ts:3930:15 - error TS2300: Duplicate identifier 'DistributorSubscriptionBillingsArgs'.
3930 export type DistributorSubscriptionBillingsArgs = {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 5 errors in the same file, starting at: node_modules/.prisma/client/index.d.ts:1909
How to reproduce
Expected behavior
Project should compile successfully
Prisma information
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl"]
previewFeatures = ["orderByNulls", "filteredRelationCount", "extendedWhereUnique"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Distributor {
id String @id @default(uuid())
subscription DistributorSubscription[]
subscriptionBillings DistributorSubscriptionBillings[]
}
model DistributorSubscription {
id String @id @default(uuid())
distributorId String
distributor Distributor @relation(fields: [distributorId], references: [id], onDelete: Cascade)
billings DistributorSubscriptionBillings[]
}
model DistributorSubscriptionBillings {
id String @id @default(uuid())
distributorId String
distributor Distributor @relation(fields: [distributorId], references: [id], onDelete: Cascade)
distributorSubscriptionId String
distributorSubscription DistributorSubscription @relation(fields: [distributorSubscriptionId], references: [id], onDelete: Cascade)
}
Environment & setup
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"moduleResolution": "node",
"sourceMap": true,
"outDir": "./dist"
},
"exclude": [
"node_modules"
]
}
Prisma Version
The text was updated successfully, but these errors were encountered: