wasm-engine-edge not found

I am getting a very weird error when building my Vite project:
Error: Could not load /Users/project/node_modules/@prisma/client/runtime/wasm-engine-edge.js: ENOENT: no such file or directory, open '/Users/projects/node_modules/@prisma/client/runtime/wasm-engine-edge.js'
Error: Could not load /Users/project/node_modules/@prisma/client/runtime/wasm-engine-edge.js: ENOENT: no such file or directory, open '/Users/projects/node_modules/@prisma/client/runtime/wasm-engine-edge.js'
Does anyone know where this error might come from? I don't even know what to look for, this is really weird.
4 Replies
Prisma AI Help
Prisma AI Help6mo ago
You selected to wait for the human sages. They'll share their wisdom soon. Grab some tea while you wait, or check out #ask-ai if you'd like a quick chat with the bot anyway!
Nurul
Nurul6mo ago
Hey! Is your project open source by any chance? Is this happening on latest prisma version?
Duck
Duck4mo ago
I've got this exact issue. I'm on Windows 11 using WSL (which is where the repo is being access from).
Error:
ENOENT: no such file or directory, open '/home/harrisonhoward/dev/technical-demo/node_modules/.pnpm/@prisma+client@6.6.0_prisma@6.15.0_typescript@5.9.2__typescript@5.9.2/node_modules/@prisma/client/runtime/wasm-engine-edge.js'
Error:
ENOENT: no such file or directory, open '/home/harrisonhoward/dev/technical-demo/node_modules/.pnpm/@prisma+client@6.6.0_prisma@6.15.0_typescript@5.9.2__typescript@5.9.2/node_modules/@prisma/client/runtime/wasm-engine-edge.js'
Point out that I only installed everything today. It doesn't appear to hinder me from using prisma though. Very interesting error.
Nurul
Nurul3mo ago
Can you confirm that prisma and @prisma/client are using the same version 6.15.0?

Did you find this page helpful?