correction prisma v2
This commit is contained in:
64
build_output2.txt
Normal file
64
build_output2.txt
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
> plumeia@0.1.0 build
|
||||
> npx prisma generate && next build
|
||||
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' }
|
||||
[dotenv@17.3.1] injecting env (0) from .env.local -- tip: ⚙️ suppress all logs with { quiet: true }
|
||||
Loaded Prisma config from prisma.config.ts.
|
||||
|
||||
Prisma schema loaded from prisma\schema.prisma.
|
||||
|
||||
✔ Generated Prisma Client (v7.4.1) to .\node_modules\@prisma\client in 72ms
|
||||
|
||||
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
|
||||
|
||||
|
||||
⚠ Warning: Next.js inferred your workspace root, but it may not be correct.
|
||||
We detected multiple lockfiles and selected the directory of C:\Users\streaper2\package-lock.json as the root directory.
|
||||
To silence this warning, set `turbopack.root` in your Next.js config, or consider removing one of the lockfiles if it's not needed.
|
||||
See https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack#root-directory for more information.
|
||||
Detected additional lockfiles:
|
||||
* C:\Users\streaper2\Documents\00 - projet\plumeia\package-lock.json
|
||||
|
||||
▲ Next.js 16.1.6 (Turbopack)
|
||||
- Environments: .env
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 1183.7ms
|
||||
Skipping validation of types
|
||||
Collecting page data using 31 workers ...
|
||||
Error [PrismaClientInitializationError]: `PrismaClient` needs to be constructed with a non-empty, valid `PrismaClientOptions`:
|
||||
|
||||
```
|
||||
new PrismaClient({
|
||||
...
|
||||
})
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
constructor() {
|
||||
super({ ... });
|
||||
}
|
||||
```
|
||||
|
||||
at a (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[root-of-the-server]__bcb19414._.js:1:1488)
|
||||
at module evaluation (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[root-of-the-server]__bcb19414._.js:1:1523)
|
||||
at instantiateModule (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[turbopack]_runtime.js:740:9)
|
||||
at getOrInstantiateModuleFromParent (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[turbopack]_runtime.js:763:12)
|
||||
at Context.esmImport [as i] (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[turbopack]_runtime.js:228:20)
|
||||
at <unknown> (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[root-of-the-server]__bcb19414._.js:1:2288)
|
||||
at Context.asyncModule [as a] (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[turbopack]_runtime.js:455:5)
|
||||
at module evaluation (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[root-of-the-server]__bcb19414._.js:1:2235)
|
||||
at instantiateModule (C:\Users\streaper2\Documents\00 - projet\plumeia\.next\server\chunks\[turbopack]_runtime.js:740:9) {
|
||||
clientVersion: '7.4.1',
|
||||
errorCode: undefined,
|
||||
retryable: undefined
|
||||
}
|
||||
|
||||
> Build error occurred
|
||||
Error: Failed to collect page data for /api/ai/generate
|
||||
at ignore-listed frames {
|
||||
type: 'Error'
|
||||
}
|
||||
Reference in New Issue
Block a user