DevPanda
DevPanda
Explore posts from servers
TTCTheo's Typesafe Cult
Created by DevPanda on 11/14/2024 in #questions
Next lint fail prisma edge
Hey, i got this error when i try to build my t3-app with prisma edge i have try to set the lint dir only to src but it doesn´t help. Have anyone a idea? Sorry for my bad english.
./prisma/client/edge.js:31:1
Type error: Type 'typeof Prisma' is missing the following properties from type 'typeof Prisma': TransactionIsolationLevel, GameTypeScalarFieldEnum, GroupScalarFieldEnum, ServerScalarFieldEnum, and 10 more.

29 | const Prisma = {}
30 |
> 31 | exports.Prisma = Prisma
| ^
32 | exports.$Enums = {}
33 |
34 | /**
 ELIFECYCLE  Command failed with exit code 1.
./prisma/client/edge.js:31:1
Type error: Type 'typeof Prisma' is missing the following properties from type 'typeof Prisma': TransactionIsolationLevel, GameTypeScalarFieldEnum, GroupScalarFieldEnum, ServerScalarFieldEnum, and 10 more.

29 | const Prisma = {}
30 |
> 31 | exports.Prisma = Prisma
| ^
32 | exports.$Enums = {}
33 |
34 | /**
 ELIFECYCLE  Command failed with exit code 1.
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";

/** @type {import("next").NextConfig} */
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "utfs.io",
pathname: "/f/*",
},
],
},
experimental: {
optimizePackageImports: [
'@mantine/core',
'@mantine/hooks'
]
},
eslint: {
dirs: ["src"],
},
};

export default config;
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";

/** @type {import("next").NextConfig} */
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "utfs.io",
pathname: "/f/*",
},
],
},
experimental: {
optimizePackageImports: [
'@mantine/core',
'@mantine/hooks'
]
},
eslint: {
dirs: ["src"],
},
};

export default config;
2 replies
PPrisma
Created by DevPanda on 10/5/2024 in #help-and-questions
MongoDB DataType Code
Is it possible to use the "Code" data type with Prisma in MongoDB? If so, how?
2 replies
PPrisma
Created by DevPanda on 9/25/2024 in #help-and-questions
Prisma Accelerate Typescript
Hey, what are the typings for Prisma Accelerate? why is prismaClientSingleton = any? this make no sense
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";

function prismaClientSingleton() {
return new PrismaClient().$extends(withAccelerate());
}

declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;

const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();

export default prisma;

if (process.env.NODE_ENV !== "production") globalThis.prismaGlobal = prisma;
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";

function prismaClientSingleton() {
return new PrismaClient().$extends(withAccelerate());
}

declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;

const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();

export default prisma;

if (process.env.NODE_ENV !== "production") globalThis.prismaGlobal = prisma;
2 replies
PPrisma
Created by DevPanda on 9/24/2024 in #help-and-questions
why he say that is missing? Its come from a relation
No description
4 replies
PPrisma
Created by DevPanda on 7/21/2024 in #help-and-questions
At what point is a query used up from the 60k
Is one consumed to get it into the cache or is one consumed per retrieval in the code
7 replies
DIAdiscord.js - Imagine an app
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
9 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
Hey, does prisma also have a localcaching or something? except the prisma accelerate. i would like to have something local because the internet is getting worse and worse in germany 😦 Does anyone know anything current? e.g. an NPM package?
11 replies
PPrisma
Created by DevPanda on 4/8/2024 in #help-and-questions
why that not work?
No description
3 replies