I'm trying the Rust-free version

Hello, I'm trying to use the "Rust Free" version of Prisma in my NestJS project. I followed this blog post: https://www.prisma.io/blog/try-the-new-rust-free-version-of-prisma-orm-early-access Now I'm getting a strange error that I can't seem to identify. Here's the error it generates:
webpack://my_api/prisma-client/internal/%20sync:2
var e = new Error("Cannot find module '" + req + "'");
^

Error: Cannot find module 'node:fs/promises'
at webpackEmptyContext (webpack://my_api/prisma-client/internal/%20sync:2:1)
at <anonymous> (webpack://my_api/prisma-client/internal/class.ts:90:73)
at async dynamicRequireFn (webpack://my_api/prisma-client/internal/class.ts:90:11)
at async Object.getQueryCompilerWasmModule (webpack://my_api/prisma-client/internal/class.ts:93:26)
at async <anonymous> (/api/node_modules/@prisma/client/src/runtime/core/engines/client/WasmQueryCompilerLoader.ts:25:28)
at async Object.loadQueryCompiler (/api/node_modules/@prisma/client/src/runtime/core/engines/client/WasmQueryCompilerLoader.ts:44:12)
at async Vt.#a (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:255:34)
at async <anonymous> (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:183:29)
at async Vt.#i (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:206:16)
at async Vt.start (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:367:5) {
code: 'MODULE_NOT_FOUND'
}
webpack://my_api/prisma-client/internal/%20sync:2
var e = new Error("Cannot find module '" + req + "'");
^

Error: Cannot find module 'node:fs/promises'
at webpackEmptyContext (webpack://my_api/prisma-client/internal/%20sync:2:1)
at <anonymous> (webpack://my_api/prisma-client/internal/class.ts:90:73)
at async dynamicRequireFn (webpack://my_api/prisma-client/internal/class.ts:90:11)
at async Object.getQueryCompilerWasmModule (webpack://my_api/prisma-client/internal/class.ts:93:26)
at async <anonymous> (/api/node_modules/@prisma/client/src/runtime/core/engines/client/WasmQueryCompilerLoader.ts:25:28)
at async Object.loadQueryCompiler (/api/node_modules/@prisma/client/src/runtime/core/engines/client/WasmQueryCompilerLoader.ts:44:12)
at async Vt.#a (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:255:34)
at async <anonymous> (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:183:29)
at async Vt.#i (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:206:16)
at async Vt.start (/api/node_modules/@prisma/client/src/runtime/core/engines/client/ClientEngine.ts:367:5) {
code: 'MODULE_NOT_FOUND'
}
And here's the code I'm using to connect:
constructor(
private readonly configService: ConfigService<EnvironmentVariables>,
) {
const adapter = new PrismaPg({
connectionString: configService.get('DATABASE_URL'),
});
super({
adapter,
});
constructor(
private readonly configService: ConfigService<EnvironmentVariables>,
) {
const adapter = new PrismaPg({
connectionString: configService.get('DATABASE_URL'),
});
super({
adapter,
});
Do you have any idea what might be causing this? I'm on Prisma 6.13.0 and Node 22 Thanks!
3 Replies
Prisma AI Help
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
Mathias
MathiasOP2w ago
My client:
generator client {
provider = "prisma-client"
binaryTargets = ["native", "linux-musl"]
previewFeatures = ["fullTextSearchPostgres", "queryCompiler", "driverAdapters"]
output = "../prisma-client"
runtime = "nodejs"
moduleFormat = "cjs"
generatedFileExtension = "ts"
importFileExtension = ""
}
generator client {
provider = "prisma-client"
binaryTargets = ["native", "linux-musl"]
previewFeatures = ["fullTextSearchPostgres", "queryCompiler", "driverAdapters"]
output = "../prisma-client"
runtime = "nodejs"
moduleFormat = "cjs"
generatedFileExtension = "ts"
importFileExtension = ""
}
Nurul
Nurul2w ago
We released a bunch of fixes for the new queryCompiler in version 6.14.0 Could you check if you get the same error in 6.14.0 as well?

Did you find this page helpful?