PrismaP
Prisma2mo ago
7 replies
FrancyMak

Can't compile with nextjs

Build error occurred
Error: Turbopack build failed with 1 errors:
./lib/generated/prisma/client.ts
Code generation for chunk item errored
An error occurred while generating the chunk item [project]/lib/generated/prisma/client.ts [app-client] (ecmascript) <locals>

Caused by:
- the chunking context (unknown) does not support external modules (request: node:module)

Debug info:
- An error occurred while generating the chunk item [project]/lib/generated/prisma/client.ts [app-client] (ecmascript) <locals>
- Execution of <MergedEcmascriptModuleChunkItem as EcmascriptChunkItem>::content_with_async_module_info failed
- Execution of *EcmascriptChunkItemContent::new failed
- Execution of EcmascriptModuleContent::new_merged failed
- the chunking context (unknown) does not support external modules (request: node:module)

Import traces:
Server Component:
./lib/generated/prisma/client.ts
./app/[locale]/(home)/page.tsx

App Route:
./lib/generated/prisma/client.ts
./schemas/property.schema.ts
./app/api/properties/[propertyId]/route.ts

Client Component Browser:
./lib/generated/prisma/client.ts [Client Component Browser]
./components/main/explore/filters-sidebar.tsx [Client Component Browser]
./app/[locale]/(home)/explore/page.tsx [Client Component Browser]
./app/[locale]/(home)/explore/page.tsx [Server Component]

Client Component SSR:
./lib/generated/prisma/client.ts [Client Component SSR]
./components/main/explore/filters-sidebar.tsx [Client Component SSR]
./app/[locale]/(home)/explore/page.tsx [Client Component SSR]
./app/[locale]/(home)/explore/page.tsx [Server Component]
Was this page helpful?