Skip to content

Prisma Client ENOENT #11535

@OverSamu

Description

@OverSamu

What versions & operating system are you using?

System:
  OS: Windows 11 10.0.26100
  CPU: (4) x64 12th Gen Intel(R) Core(TM) i5-12500
  Memory: 1.25 GB / 7.98 GB
Binaries:
  Node: 24.11.1 - C:\Program Files\nodejs\node.EXE
  npm: 11.6.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
  @cloudflare/vitest-pool-workers: ^0.8.19 => 0.8.71
  wrangler: ^4.53.0 => 4.53.0
  prisma: ^7.1.0 => 7.1.0
  @prisma/client: ^7.1.0 => 7.1.0
  @prisma/adapter-d1: ^7.1.0 => 7.1.0

Please provide a link to a minimal reproduction

https://github.com/OverSamu/workers-sdk-prisma-issue

Describe the Bug

Hi, when I run wrangler dev, I get the following error:

ENOENT: no such file or directory, open '.wrangler\tmp\dev-...\...-query_compiler_bg.wasm?module'

By removing the lines relating to PrismaClient (obtaining this version) I can start the local server correctly.
Most importantly, after starting the local server, if I uncomment the lines related to PrismaClient, I can use it without any problems.

I'm not sure if this is a workers-sdk error or a Prisma error, but the last thing I wrote above makes me think it's something related to workers-sdk.

Thanks in advance.

Please provide any relevant error logs

--- 2025-12-06T21:01:02.158Z error
X [ERROR] write EOF


---

--- 2025-12-06T21:01:02.159Z debug
Error: write EOF
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
---

--- 2025-12-06T21:01:02.210Z debug
Writing additional module to output .wrangler\tmp\dev-vDPPV5\98a3ee0cbc7381b8b5d29673ca18c9c06953c305-query_compiler_bg.wasm?module
---

--- 2025-12-06T21:01:02.228Z debug
Error in BundlerController: Failed to construct initial bundle
 Error: ENOENT: no such file or directory, open '.wrangler\tmp\dev-vDPPV5\98a3ee0cbc7381b8b5d29673ca18c9c06953c305-query_compiler_bg.wasm?module'
    at async open (node:internal/fs/promises:642:25)
    at async Object.writeFile (node:internal/fs/promises:1249:14)
    at async writeAdditionalModules (node_modules\wrangler\wrangler-dist\cli.js:40439:5)
    at async bundleWorker (node_modules\wrangler\wrangler-dist\cli.js:123425:3)
    at async build (node_modules\wrangler\wrangler-dist\cli.js:280019:59) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: '.wrangler\\tmp\\dev-vDPPV5\\98a3ee0cbc7381b8b5d29673ca18c9c06953c305-query_compiler_bg.wasm?module'
}
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions