PrismaP
Prisma5mo ago
4 replies
Corey

Turborepo x Prisma x Neon

Been stuck trying to implement a prisma database package for my monorepo (turborepo). I am using a neon driver adapter. I dont have any edge functions, besides middleware which just uses clerk.

I get this error as soon as any page loads. It is an app router next js app btw that I am trying to use the prisma package in.

⨯ unhandledRejection: Error: dynamically loading WebAssembly is not supported in this runtime and global wasm_packages_database_prisma_generated_client_query_engine_bg_325b988e was not injected
at <unknown> (packages/database/prisma/generated/client/query_enginebg.wasm.loader.mjs:3:18)
at [project]/packages/database/prisma/generated/client/query_engine_bg.wasm?module [instrumentation-edge] (wasm module) (.next/server/edge/chunks/packages_database_prisma_generated_clientbf3ff1c7..j
s:7165:1)
at <unknown> (.next/server/edge/chunks/packages_database_prisma_generated_clientbf3ff1c7..js:7184:89)
1 | import wasmPath from "WASM_PATH";
2 |
3 | const mod = await turbopack_wasm_module(wasmPath);
| ^
4 |
5 | export default mod;
6 |


I think I am just missing something critical and probably obvious.
Was this page helpful?