Closed
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-map
by setting thehideSourceMaps
option innext.config.js
const moduleExports = {
sentry: {
hideSourceMaps: true,
},
};
- Run
next dev
to 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