-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
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 package are you using?
@sentry/nextjs
SDK Version
7.7.0
Framework Version
12.2.3
Link to Sentry event
No response
Steps to Reproduce
- Configure Sentry automatically with Next.js with the wizard
- Use
hidden-source-mapby setting thehideSourceMapsoption innext.config.js
const moduleExports = {
sentry: {
hideSourceMaps: true,
},
};- Run
next devto start Next.js in development mode
Expected Result
Run Next.js with Sentry without any warning.
Actual Result
Since the introduction of the next.config.js validation via ajv on version 12.2.3, the following warning is raised.
warn - Invalid next.config.js options detected:
[
{
"instancePath": "",
"schemaPath": "#/additionalProperties",
"keyword": "additionalProperties",
"params": {
"additionalProperty": "sentry"
},
"message": "must NOT have additional properties"
}
]
See more info here: https://nextjs.org/docs/messages/invalid-next-config
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK