Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Next.js canary causes patch of '_nextBubbleNoFallback' to fail #221

Open
hach-que opened this issue Jan 3, 2025 · 0 comments
Open
Labels
bug Something isn't working triage

Comments

@hach-que
Copy link

hach-que commented Jan 3, 2025

Describe the bug

When using Next.js canary, patching fails:

 - patching exception bubbling
file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/build/bundle-server.js:183
            throw new Error(`Failed to patch ${target}`);
                  ^

Error: Failed to patch exception bubbling
    at patchCodeWithValidations (file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/build/bundle-server.js:183:19)
    at async updateWorkerBundledCode (file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/build/bundle-server.js:122:25)
    at async bundleServer (file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/build/bundle-server.js:104:5)
    at async build (file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/build/index.js:75:5)
    at async file:///mnt/c/Work/website/node_modules/@opennextjs/cloudflare/dist/cli/index.js:7:1

This is presumably due to this commit here: vercel/next.js@2e46a18

Steps to reproduce

  1. Set up a Next.js project using canary version, and set up to deploy to CloudFlare.
  2. Observe patching failure.

Expected behavior

Patching should succeed.

@opennextjs/cloudflare version

0.3.3

Wrangler version

3.99.0

next info output

Node.js v22.12.0

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
  Available memory (MB): 15946
  Available CPU cores: 24
Binaries:
  Node: 22.12.0
  npm: 10.9.0
  Yarn: 4.6.0
  pnpm: N/A
Relevant Packages:
  next: 15.1.1-canary.24
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A

Additional context

No response

@hach-que hach-que added bug Something isn't working triage labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant