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
https://github.com/DiPSoMaNiE/next-canary-prisma-issue
bun install
prisma generate
bun dev
http://localhost:3000
This error occurs when:
[email protected]
15.2.0-canary.39
next dev --turbopack
next dev
next build
generator
schema.prisma
To make it work:
output = "../generated"
prisma/schema.prisma
import { PrismaClient } from '../generated'
import { PrismaClient } from '@prisma/client'
src/db.ts
Everything should work as expected with a custom output path for the generated PrismaClient.
PrismaClient
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 Available memory (MB): 49152 Available CPU cores: 12 Binaries: Node: 22.14.0 npm: 10.9.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.2.0-canary.74 // Latest available version is detected (15.2.0-canary.74). eslint-config-next: 15.2.0-canary.74 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Turbopack
next dev (local)
prisma : 6.4.1 @prisma/client : 6.4.1 Computed binaryTarget : darwin-arm64 Operating System : darwin Architecture : arm64 Node.js : v22.14.0 TypeScript : 5.7.3 Query Engine (Node-API) : libquery-engine a9055b89e58b4b5bfb59600785423b1db3d0e75d (at node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node) Schema Engine : schema-engine-cli a9055b89e58b4b5bfb59600785423b1db3d0e75d (at node_modules/@prisma/engines/schema-engine-darwin-arm64) Schema Wasm : @prisma/prisma-schema-wasm 6.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d Default Engines Hash : a9055b89e58b4b5bfb59600785423b1db3d0e75d Studio : 0.509.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Link to the code that reproduces this issue
https://github.com/DiPSoMaNiE/next-canary-prisma-issue
To Reproduce
bun install
prisma generate
bun dev
http://localhost:3000
and see errorCurrent vs. Expected behavior
This error occurs when:
[email protected]
or above (works on15.2.0-canary.39
and below)next dev --turbopack
(works withnext dev
ornext build
which use webpack)generator
block ofschema.prisma
To make it work:
output = "../generated"
line inprisma/schema.prisma
prisma generate
import { PrismaClient } from '../generated'
toimport { PrismaClient } from '@prisma/client'
insrc/db.ts
bun dev
http://localhost:3000
and see it worksEverything should work as expected with a custom output path for the generated
PrismaClient
.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 Available memory (MB): 49152 Available CPU cores: 12 Binaries: Node: 22.14.0 npm: 10.9.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.2.0-canary.74 // Latest available version is detected (15.2.0-canary.74). eslint-config-next: 15.2.0-canary.74 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
The text was updated successfully, but these errors were encountered: