Open tomitrescak opened 3 days ago
https://github.com/vercel/turbo/tree/main/examples/with-prisma
I am suing standard starter for turbobuild with prisma
import * as Prisma from "@repo/database"; console.log(Prisma);
Currently, when re-exporting from prisma/client in a turborepo the exports are NOT included.
I want to be able to re-export from package in turborepo with "export * from '@prisma/client'
I have enums and other structures that I need to be exported.
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 21.7.2 npm: 10.5.2 Yarn: 1.22.19 pnpm: 9.4.0 Relevant Packages: next: 15.0.0-rc.0 // Latest available version is detected (15.0.0-rc.0). eslint-config-next: 14.2.4 react: 19.0.0-rc-107a2f8c3e-20240617 react-dom: 19.0.0-rc-107a2f8c3e-20240617 typescript: 5.5.1-rc Next.js Config: output: N/A
Turbopack
next dev (local)
No response
FYI, the following does not work with turbopack, only with webpack:
export * from "@prisma/client";
This does work with turbopack
export { AchievementType, PrismaClient } from "@prisma/client";
Not optimal.
Link to the code that reproduces this issue
https://github.com/vercel/turbo/tree/main/examples/with-prisma
To Reproduce
I am suing standard starter for turbobuild with prisma
Current vs. Expected behavior
Currently, when re-exporting from prisma/client in a turborepo the exports are NOT included.
I want to be able to re-export from package in turborepo with "export * from '@prisma/client'
I have enums and other structures that I need to be exported.
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response