8000 [BUG] fs.readdir is not implemented yet Error When Running Prisma Query · Issue #699 · opennextjs/opennextjs-cloudflare · GitHub
[go: up one dir, main page]

Skip to content
[BUG] fs.readdir is not implemented yet Error When Running Prisma Query #699
Open
@Vivek205

Description

@Vivek205

Describe the bug

Error

I get the error
Error: [unenv] fs.readdir is not implemented yet!
Whenever I try to run a Prisma Query after starting the server with opennextjs-cloudflare build && opennextjs-cloudflare preview

Tried solution

I've checked the #623 , still it didn't fix the problem for me.

Steps to reproduce

  1. clone the repo https://github.com/Vivek205/chrome-analytics/tree/opennext-setup
  2. checkout the branch opennext-setup
  3. set NeonDB pooled URL in the .env and .dev.vars
  4. pnpm install
  5. pnpm db:generate
  6. pnpm run preview
  7. Open the page, then you'll see the errror in the terminal.

Expected behavior

Should be able to run the Prisma query in cloudflare worker.

@opennextjs/cloudflare version

^1.1.0

Wrangler version

^4.18.0

next info output

Using vars defined in .dev.vars
/bin/sh: yarn: command not found

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Thu Apr 24 20:29:19 PDT 2025; root:xnu-10063.141.1.705.2~1/RELEASE_ARM64_T6031
  Available memory (MB): 36864
  Available CPU cores: 14
Binaries:
  Node: 22.16.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 10.11.1
Relevant Packages:
  next: 15.3.1 // There is a newer version (15.3.3) available, upgrade recommended! 
  eslint-config-next: 15.3.1
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
Next.js Config:
  output: N/A
 ⚠ There is a newer version (15.3.3) available, upgrade recommended! 
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0