-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
Description
Describe the bug
When using yarn pnp as my package management tool, I am able to build the application and run the preview command, however once the server is started and I make a request to /
I get a 500 error:
Dynamic require of "/.next/server/middleware-manifest.json" is not supported
Steps to reproduce
Please see clean repo that reproduces the error: https://github.com/amized/opennext-cloudflare-pnp-issue
- Checkout repo
- Run
yarn install
- Run
yarn preview
- Visit site url in your browser or make a request to
http://localhost:8787
. A 500 error is returned.
Expected behavior
I expect the "Create Next App" homepage to be served
@opennextjs/cloudflare version
1.3.0
Wrangler version
4.37.0
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.6.0: Mon Aug 11 21:16:21 PDT 2025; root:xnu-11417.140.69.701.11~1/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 20.11.0
npm: 10.2.4
Yarn: 4.9.4
pnpm: 10.16.1
Relevant Packages:
next: 14.2.32 // An outdated version detected (latest is 15.5.4), upgrade is highly recommended!
eslint-config-next: 15.4.6
react: 18.3.1
react-dom: 18.3.1
typescript: 5.9.2
Next.js Config:
output: N/A
⚠ An outdated version detected (latest is 15.5.4), upgrade is highly 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
Issue is related to #719