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