Skip to content

error Detected default export in '...'. Export a named export for each HTTP method instead. #8934

Closed
@ted-marozzi

Description

@ted-marozzi

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

"@sentry/nextjs": "^7.67.0-beta.0",

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Next JS app dir ("next": "^13.4.7")
  2. Upgrade to the latest beta version (7.67.0-beta.0), this doesn't occur in 7.66.0, its might have been introduced in feat(nextjs): Add route handler instrumentation #8832
  3. Run app
  4. View console errors

Expected Result

No error logs in the console

Actual Result

Logs for every api route.

- error Detected default export in '/Users/tedmarozzi/Code/mermaid-flow/app/api/credits/route.ts'. Export a named export for each HTTP method instead.
- error Detected default export in '/Users/tedmarozzi/Code/mermaid-flow/app/api/auth/[...nextauth]/route.ts'. Export a named export for each HTTP method instead.

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

No type

Projects

Status

Waiting for: Product Owner

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions