Deleted User
Deleted User
Explore posts from servers
PPrisma
Created by Deleted User on 4/19/2025 in #help-and-questions
ReferenceError: __dirname is not defined in ES module scope
I am using Prisma Client with SvelteKit and I am getting this error on builds/preview. I have tried looking up solutions but I could not find a solution. I saw someone saying it should be fixed in Prisma 6.7. Is this true? This issue is preventing my application from working once it is built.
3 replies
CDCloudflare Developers
Created by Deleted User on 4/17/2025 in #workers-help
Cannot read properties of undefined (reading 'basePath')
I am using Hono with Chanfana with Cloudflare Workers and I can't seem to figure out what is causing the error in the title of this post. I followed this example for nested routing: https://chanfana.pages.dev/advanced-topics-patterns However, it just shows that error. I tried using the exact example in the documentation and it still crashes with that error. Does anyone know how to fix this?
1 replies
PPrisma
Created by Deleted User on 4/8/2025 in #help-and-questions
Schema could not be found after Prisma 6.6.0 update
Before 6.6.0, prisma generate was working completely fine. Now, it isn't able to find the schema file located in ./prisma/schema/schema.prisma I tried running the command with --schema to specify the location, and then the following is the result of that:
Environment variables loaded from .env
Prisma schema loaded from prisma\schema\schema.prisma
Error:
You don't have any models defined in your schema.prisma, so nothing will be generated.
You can define a model like this:

model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
Environment variables loaded from .env
Prisma schema loaded from prisma\schema\schema.prisma
Error:
You don't have any models defined in your schema.prisma, so nothing will be generated.
You can define a model like this:

model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
The following is my schema.prisma:
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters", "prismaSchemaFolder"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters", "prismaSchemaFolder"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}
This completely broke Prisma for me and it was working completely fine before this. @prisma/client and prisma are both at version 6.6.0. Any help would be much appreciated.
7 replies
CC#
Created by Deleted User on 5/13/2023 in #help
✅ No files when Publishing Avalonia Project
4 replies