Unverified Commit 16d464ca authored by Luke Harries's avatar Luke Harries Committed by GitHub

Fix withSourceMaps is not a function (#20643)

In order to get this example working, I needed to remove the invocation as described here: https://github.com/vercel/next-plugins/issues/309#issuecomment-674376348
parent 29b591b2
// Use the hidden-source-map option when you don't want the source maps to be
// publicly available on the servers, only to the error reporting
const withSourceMaps = require('@zeit/next-source-maps')()
// Use the SentryWebpack plugin to upload the source maps during build step
const SentryWebpackPlugin = require('@sentry/webpack-plugin')
const {
......@@ -23,7 +19,8 @@ const COMMIT_SHA =
process.env.SENTRY_DSN = SENTRY_DSN
const basePath = ''
module.exports = withSourceMaps({
module.exports = {
productionBrowserSourceMaps: true,
env: {
// Make the COMMIT_SHA available to the client so that Sentry events can be
// marked for the release they belong to. It may be undefined if running
......@@ -85,4 +82,4 @@ module.exports = withSourceMaps({
return config
},
basePath,
})
}
......@@ -12,7 +12,6 @@
"@sentry/integrations": "^5.21.3",
"@sentry/node": "^5.21.3",
"@sentry/webpack-plugin": "^1.12.1",
"@zeit/next-source-maps": "0.0.4-canary.1",
"next": "latest",
"react": "^16.8.6",
"react-dom": "^16.8.6"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment