Closed as not planned
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
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner