Open
Description
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
- clone the repo https://github.com/Vivek205/chrome-analytics/tree/opennext-setup
- checkout the branch opennext-setup
- set NeonDB pooled URL in the .env and .dev.vars
- pnpm install
- pnpm db:generate
- pnpm run preview
- 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