Skip to content

[BUG] Adding Sentry causes app to crash in preview mode #587

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

Closed
MirroHambringer opened this issue Apr 15, 2025 · 1 comment · Fixed by #619
Closed

[BUG] Adding Sentry causes app to crash in preview mode #587

MirroHambringer opened this issue Apr 15, 2025 · 1 comment · Fixed by #619
Assignees
Labels
bug Something isn't working triage

Comments

@MirroHambringer
Copy link

Describe the bug

After integrating Sentry, we observed that wrangler fails to run the app in preview mode, resulting in a crash.

Steps to reproduce

Link to minimum reproduction.

  1. npm run preview
  2. When Wrangler shows Ready on http://localhost:8787, press b in the terminal to open the browser.
  3. The error will appear in the browser and terminal.

Expected behavior

The app should run without crashing.

@opennextjs/cloudflare version

@opennextjs/cloudflare@1.0.0-beta.2

Wrangler version

4.10.0

next info output

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 23.6.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 7.14.2
Relevant Packages:
  next: 15.2.5 // There is a newer version (15.3.0) available, upgrade recommended!
  eslint-config-next: 15.2.5
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
Next.js Config:
  output: N/A

Additional context

I also tested with @opennextjs/cloudflare@0.6.6 — the result was the same.

For Sentry, I tried both the manual setup from Sentry’s documentation and the server-side configuration mentioned in your OpenNext AWS docs. In both cases, the app still crashes when using preview mode with Wrangler.

@MirroHambringer MirroHambringer added bug Something isn't working triage labels Apr 15, 2025
@opennextjs opennextjs deleted a comment Apr 17, 2025
@conico974 conico974 self-assigned this Apr 29, 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

Successfully merging a pull request may close this issue.

2 participants