-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.57.0
Framework Version
7.57.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
environment: process.env.NEXT_PUBLIC_SITE_URL === "https://[..]" ? "production" : "development",
dsn: SENTRY_DSN || "[..]",
includeLocalVariables: true,
tracesSampleRate: 0.2,
});
Steps to Reproduce
- Add a dynamic route when working with the Next.js 13 app directory e.g.
app/checkout/[step]/page.jsx
- Get a warning during build.
Expected Result
Auto-wrapping to work
Actual Result
[@sentry/nextjs] Could not instrument /[..]/app/checkout/[step]/page.jsx. An error occurred while auto-wrapping:
SyntaxError: Unexpected token (14:55) in __SENTRY_WRAPPING_TARGET_FILE__.cjs
mayrsascha, bridgetlarcher, epbarger, georgebutter, anastasiya1155 and 1 more
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Projects
Status
Waiting for: Product Owner