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:
And here's the code I'm using to connect:
Do you have any idea what might be causing this?
I'm on Prisma 6.13.0 and Node 22
Thanks!
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!