Closed
Description
Describe the bug
I encountered an issue while running the middleware example from the experimental branch. On every reload of the page, the response throws an error. I've attached a video recording to help illustrate the problem.
Screen.Recording.2024-12-08.at.4.22.32.PM.mov
Steps to reproduce
Steps to Reproduce:
Clone the repository and switch to the experimental branch.
Run the middleware example using pnpm run preview.
Open the browser and navigate to the application.
Refresh the page multiple times.
Expected behavior
The middleware should handle requests and provide a consistent response without any errors.
@opennextjs/cloudflare version
experimental
Node.js version
v22.11.0
Wrangler version
3.93.0
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
Available memory (MB): 65536
Available CPU cores: 10
Binaries:
Node: 22.11.0
npm: 10.9.0
Yarn: 1.22.22
pnpm: 9.12.3
Relevant Packages:
next: 14.2.11 // An outdated version detected (latest is 15.0.4), upgrade is highly recommended!
eslint-config-next: 14.2.14
react: 18.3.1
react-dom: 18.3.1
typescript: 5.5.4
Next.js Config:
output: N/A
⚠ An outdated version detected (latest is 15.0.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
No response