serverless-next.js: Does not build with @sentry/nextjs installed
Describe the bug
Does not build with @sentry/nextjs installed, however build just fine with yarn build
Actual behavior
After following first 2 steps installing @sentry/nextjs
yarn add @sentry/nextjs
npx @sentry/wizard -i nextjs
yarn build works just fine and builds the website, however sls deployment fails
Expected behavior
Website deploys properly with sentry configured
Steps to reproduce
yarn add @sentry/nextjs
npx @sentry/wizard -i nextjs
Screenshots/Code/Logs
DEBUG ─ Resolving the template's static variables.
DEBUG ─ Collecting components from the template.
DEBUG ─ Downloading any NPM components found in the template.
DEBUG ─ Analyzing the template's components dependencies.
DEBUG ─ Creating the template's components graph.
DEBUG ─ Syncing template state.
DEBUG ─ Executing the template's components graph.
info - Loaded env from /Users/dmg/Projects/website/.env.local
info - Using webpack 4. Reason: custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5
info - Checking validity of types...
info - Creating an optimized production build...
> Found 79 release files
> Analyzing 79 sourcesine › Deploying
> Rewriting sources
> Adding source map references
> Bundled 79 files for upload
> Uploaded release files to Sentry
> File upload complete (processing pending on server)
12s › websiteonline › Deploying ..
Source Map Upload Report
Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_ssgManifest.js
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js
Minified Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js (no sourcemap ref)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js.)
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js (sourcemap at 01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map)
~/_next/static/chunks/11.2e76be7885ca7f748058.js (sourcemap at 11.2e76be7885ca7f748058.js.map)
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js (sourcemap at 28.6d8be995f2d2a359ca29.js.map)
~/_next/static/chunks/30.a5eef510d68b93329255.js (sourcemap at 30.a5eef510d68b93329255.js.map)
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js (sourcemap at 31.7feaa9e338ef9fd1d419.js.map)
~/_next/static/chunks/32.2490d498aba74774cfeb.js (sourcemap at 32.2490d498aba74774cfeb.js.map)
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js (sourcemap at 33.2361fdd84ad29806c9a0.js.map)
~/_next/static/chunks/34.3de79551ad80a07e862d.js (sourcemap at 34.3de79551ad80a07e862d.js.map)
~/_next/static/chunks/35.16e091f2e999419dab4d.js (sourcemap at 35.16e091f2e999419dab4d.js.map)
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js (sourcemap at 54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map)
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js (sourcemap at 5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map)
~/_next/static/chunks/6.883d22ccf4334c757915.js (sourcemap at 6.883d22ccf4334c757915.js.map)
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js (sourcemap at 70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map)
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js (sourcemap at 844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map)
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js (sourcemap at c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map)
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js (sourcemap at e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map)
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js (sourcemap at f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map)
~/_next/static/chunks/framework.349d8128c43083da4feb.js (sourcemap at framework.349d8128c43083da4feb.js.map)
~/_next/static/chunks/main-cf105360c5e786e37d0b.js (sourcemap at main-cf105360c5e786e37d0b.js.map)
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js (sourcemap at 404-2457041fd3925a68f70d.js.map)
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js (sourcemap at _app-6ea72514b1bb3b3058ed.js.map)
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js (sourcemap at contact-us-2f516d0964f9f39111e5.js.map)
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js (sourcemap at faq-f0fb9d27d3eb7f08d8bb.js.map)
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js (sourcemap at forgot-password-92a194f9ec5b3e24bddf.js.map)
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js (sourcemap at index-342a9e0e566e6cbb257e.js.map)
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js (sourcemap at login-6862232def6dbc0fe3e3.js.map)
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js (sourcemap at privacy-policy-a37c9be147abc0962d70.js.map)
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js (sourcemap at refund-policy-ef602e8a859aeea46e09.js.map)
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js (sourcemap at secure-f8ac16ad5e730dc79cd8.js.map)
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js (sourcemap at terms-of-use-243393ee24a44abf6510.js.map)
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js (sourcemap at polyfills-439480c2336263a96e0b.js.map)
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js (sourcemap at webpack-a57895f974a085d3ae41.js.map)
Source Maps
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map
~/_next/static/chunks/11.2e76be7885ca7f748058.js.map
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js.map
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js.map
~/_next/static/chunks/30.a5eef510d68b93329255.js.map
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js.map
~/_next/static/chunks/32.2490d498aba74774cfeb.js.map
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js.map
~/_next/static/chunks/34.3de79551ad80a07e862d.js.map
~/_next/static/chunks/35.16e091f2e999419dab4d.js.map
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map
~/_next/static/chunks/6.883d22ccf4334c757915.js.map
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map
~/_next/static/chunks/framework.349d8128c43083da4feb.js.map
~/_next/static/chunks/main-cf105360c5e786e37d0b.js.map
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js.map
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js.map
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js.map
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js.map
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js.map
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js.map
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js.map
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js.map
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js.map
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js.map
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js.map
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js.map
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js.map
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js.map
~/_next/static/css/0328e91497d2e92f7934.css.map
~/_next/static/css/1bbfc3c6afd46d65a451.css.map
~/_next/static/css/51a32cc2673ebb08f19a.css.map
~/_next/static/css/f4680a2f36010d1871b1.css.map
~/_next/static/css/faa381b38c7896aac3d4.css.map
error:
Error: Command failed with exit code 1: node_modules/.bin/next build
Failed to compile.
ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' in '/Users/dmg/Projects/website/node_modules/pnp-webpack-plugin'
> Build error occurred
Error: > Build failed because of webpack errors
at /Users/dmg/Projects/website/node_modules/next/dist/build/index.js:17:924
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Span.traceAsyncFn (/Users/dmg/Projects/website/node_modules/next/dist/telemetry/trace/trace.js:6:584)
info - Loaded env from /Users/dmg/Projects/website/.env.local
info - Using webpack 4. Reason: custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5
info - Checking validity of types...
info - Creating an optimized production build...
> Found 79 release files
> Analyzing 79 sources
> Rewriting sources
> Adding source map references
> Bundled 79 files for upload
> Uploaded release files to Sentry
> File upload complete (processing pending on server)
Source Map Upload Report
Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_ssgManifest.js
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js
Minified Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js (no sourcemap ref)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js.)
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js (sourcemap at 01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map)
~/_next/static/chunks/11.2e76be7885ca7f748058.js (sourcemap at 11.2e76be7885ca7f748058.js.map)
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js (sourcemap at 28.6d8be995f2d2a359ca29.js.map)
~/_next/static/chunks/30.a5eef510d68b93329255.js (sourcemap at 30.a5eef510d68b93329255.js.map)
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js (sourcemap at 31.7feaa9e338ef9fd1d419.js.map)
~/_next/static/chunks/32.2490d498aba74774cfeb.js (sourcemap at 32.2490d498aba74774cfeb.js.map)
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js (sourcemap at 33.2361fdd84ad29806c9a0.js.map)
~/_next/static/chunks/34.3de79551ad80a07e862d.js (sourcemap at 34.3de79551ad80a07e862d.js.map)
~/_next/static/chunks/35.16e091f2e999419dab4d.js (sourcemap at 35.16e091f2e999419dab4d.js.map)
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js (sourcemap at 54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map)
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js (sourcemap at 5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map)
~/_next/static/chunks/6.883d22ccf4334c757915.js (sourcemap at 6.883d22ccf4334c757915.js.map)
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js (sourcemap at 70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map)
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js (sourcemap at 844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map)
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js (sourcemap at c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map)
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js (sourcemap at e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map)
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js (sourcemap at f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map)
~/_next/static/chunks/framework.349d8128c43083da4feb.js (sourcemap at framework.349d8128c43083da4feb.js.map)
~/_next/static/chunks/main-cf105360c5e786e37d0b.js (sourcemap at main-cf105360c5e786e37d0b.js.map)
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js (sourcemap at 404-2457041fd3925a68f70d.js.map)
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js (sourcemap at _app-6ea72514b1bb3b3058ed.js.map)
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js (sourcemap at contact-us-2f516d0964f9f39111e5.js.map)
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js (sourcemap at faq-f0fb9d27d3eb7f08d8bb.js.map)
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js (sourcemap at forgot-password-92a194f9ec5b3e24bddf.js.map)
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js (sourcemap at index-342a9e0e566e6cbb257e.js.map)
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js (sourcemap at login-6862232def6dbc0fe3e3.js.map)
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js (sourcemap at privacy-policy-a37c9be147abc0962d70.js.map)
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js (sourcemap at refund-policy-ef602e8a859aeea46e09.js.map)
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js (sourcemap at secure-f8ac16ad5e730dc79cd8.js.map)
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js (sourcemap at terms-of-use-243393ee24a44abf6510.js.map)
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js (sourcemap at polyfills-439480c2336263a96e0b.js.map)
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js (sourcemap at webpack-a57895f974a085d3ae41.js.map)
Source Maps
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map
~/_next/static/chunks/11.2e76be7885ca7f748058.js.map
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js.map
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js.map
~/_next/static/chunks/30.a5eef510d68b93329255.js.map
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js.map
~/_next/static/chunks/32.2490d498aba74774cfeb.js.map
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js.map
~/_next/static/chunks/34.3de79551ad80a07e862d.js.map
~/_next/static/chunks/35.16e091f2e999419dab4d.js.map
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map
~/_next/static/chunks/6.883d22ccf4334c757915.js.map
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map
~/_next/static/chunks/framework.349d8128c43083da4feb.js.map
~/_next/static/chunks/main-cf105360c5e786e37d0b.js.map
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js.map
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js.map
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js.map
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js.map
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js.map
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js.map
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js.map
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js.map
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js.map
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js.map
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js.map
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js.map
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js.map
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js.map
~/_next/static/css/0328e91497d2e92f7934.css.map
~/_next/static/css/1bbfc3c6afd46d65a451.css.map
~/_next/static/css/51a32cc2673ebb08f19a.css.map
~/_next/static/css/f4680a2f36010d1871b1.css.map
~/_next/static/css/faa381b38c7896aac3d4.css.map
at makeError (/Users/dmg/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.55/node_modules/execa/lib/error.js:59:11)
at handlePromise (/Users/dmg/.serverless/components/registry/npm/@sls-next/serverless-component@1.19.0-alpha.55/node_modules/execa/index.js:114:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
shortMessage: 'Command failed with exit code 1: node_modules/.bin/next build',
command: 'node_modules/.bin/next build',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'info - Loaded env from /Users/dmg/Projects/website/.env.local\n' +
'info - Using webpack 4. Reason: custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5\n' +
'info - Checking validity of types...\n' +
'info - Creating an optimized production build...\n' +
'> Found 79 release files\n' +
'> Analyzing 79 sources\n' +
'> Rewriting sources\n' +
'> Adding source map references\n' +
'> Bundled 79 files for upload\n' +
'> Uploaded release files to Sentry\n' +
'> File upload complete (processing pending on server)\n' +
'\n' +
'Source Map Upload Report\n' +
' Scripts\n' +
' ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_ssgManifest.js\n' +
' ~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js\n' +
' ~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js\n' +
' Minified Scripts\n' +
' ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js (no sourcemap ref)\n' +
' - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js.)\n' +
' ~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js (sourcemap at 01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map)\n' +
' ~/_next/static/chunks/11.2e76be7885ca7f748058.js (sourcemap at 11.2e76be7885ca7f748058.js.map)\n' +
' ~/_next/static/chunks/28.6d8be995f2d2a359ca29.js (sourcemap at 28.6d8be995f2d2a359ca29.js.map)\n' +
' ~/_next/static/chunks/30.a5eef510d68b93329255.js (sourcemap at 30.a5eef510d68b93329255.js.map)\n' +
' ~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js (sourcemap at 31.7feaa9e338ef9fd1d419.js.map)\n' +
' ~/_next/static/chunks/32.2490d498aba74774cfeb.js (sourcemap at 32.2490d498aba74774cfeb.js.map)\n' +
' ~/_next/static/chunks/33.2361fdd84ad29806c9a0.js (sourcemap at 33.2361fdd84ad29806c9a0.js.map)\n' +
' ~/_next/static/chunks/34.3de79551ad80a07e862d.js (sourcemap at 34.3de79551ad80a07e862d.js.map)\n' +
' ~/_next/static/chunks/35.16e091f2e999419dab4d.js (sourcemap at 35.16e091f2e999419dab4d.js.map)\n' +
' ~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js (sourcemap at 54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map)\n' +
' ~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js (sourcemap at 5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map)\n' +
' ~/_next/static/chunks/6.883d22ccf4334c757915.js (sourcemap at 6.883d22ccf4334c757915.js.map)\n' +
' ~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js (sourcemap at 70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map)\n' +
' ~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js (sourcemap at 844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map)\n' +
' ~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js (sourcemap at c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map)\n' +
' ~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js (sourcemap at e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map)\n' +
' ~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js (sourcemap at f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map)\n' +
' ~/_next/static/chunks/framework.349d8128c43083da4feb.js (sourcemap at framework.349d8128c43083da4feb.js.map)\n' +
' ~/_next/static/chunks/main-cf105360c5e786e37d0b.js (sourcemap at main-cf105360c5e786e37d0b.js.map)\n' +
' ~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js (sourcemap at 404-2457041fd3925a68f70d.js.map)\n' +
' ~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js (sourcemap at _app-6ea72514b1bb3b3058ed.js.map)\n' +
' ~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js (sourcemap at contact-us-2f516d0964f9f39111e5.js.map)\n' +
' ~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js (sourcemap at faq-f0fb9d27d3eb7f08d8bb.js.map)\n' +
' ~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js (sourcemap at forgot-password-92a194f9ec5b3e24bddf.js.map)\n' +
' ~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js (sourcemap at index-342a9e0e566e6cbb257e.js.map)\n' +
' ~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js (sourcemap at login-6862232def6dbc0fe3e3.js.map)\n' +
' ~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js (sourcemap at privacy-policy-a37c9be147abc0962d70.js.map)\n' +
' ~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js (sourcemap at refund-policy-ef602e8a859aeea46e09.js.map)\n' +
' ~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js (sourcemap at secure-f8ac16ad5e730dc79cd8.js.map)\n' +
' ~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js (sourcemap at terms-of-use-243393ee24a44abf6510.js.map)\n' +
' ~/_next/static/chunks/polyfills-439480c2336263a96e0b.js (sourcemap at polyfills-439480c2336263a96e0b.js.map)\n' +
' ~/_next/static/chunks/webpack-a57895f974a085d3ae41.js (sourcemap at webpack-a57895f974a085d3ae41.js.map)\n' +
' Source Maps\n' +
' ~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map\n' +
' ~/_next/static/chunks/11.2e76be7885ca7f748058.js.map\n' +
' ~/_next/static/chunks/28.6d8be995f2d2a359ca29.js.map\n' +
' ~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js.map\n' +
' ~/_next/static/chunks/30.a5eef510d68b93329255.js.map\n' +
' ~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js.map\n' +
' ~/_next/static/chunks/32.2490d498aba74774cfeb.js.map\n' +
' ~/_next/static/chunks/33.2361fdd84ad29806c9a0.js.map\n' +
' ~/_next/static/chunks/34.3de79551ad80a07e862d.js.map\n' +
' ~/_next/static/chunks/35.16e091f2e999419dab4d.js.map\n' +
' ~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map\n' +
' ~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map\n' +
' ~/_next/static/chunks/6.883d22ccf4334c757915.js.map\n' +
' ~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map\n' +
' ~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map\n' +
' ~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map\n' +
' ~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map\n' +
' ~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map\n' +
' ~/_next/static/chunks/framework.349d8128c43083da4feb.js.map\n' +
' ~/_next/static/chunks/main-cf105360c5e786e37d0b.js.map\n' +
' ~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js.map\n' +
' ~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js.map\n' +
' ~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js.map\n' +
' ~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js.map\n' +
' ~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js.map\n' +
' ~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js.map\n' +
' ~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js.map\n' +
' ~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js.map\n' +
' ~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js.map\n' +
' ~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js.map\n' +
' ~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js.map\n' +
' ~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js.map\n' +
' ~/_next/static/chunks/polyfills-439480c2336263a96e0b.js.map\n' +
' ~/_next/static/chunks/webpack-a57895f974a085d3ae41.js.map\n' +
' ~/_next/static/css/0328e91497d2e92f7934.css.map\n' +
' ~/_next/static/css/1bbfc3c6afd46d65a451.css.map\n' +
' ~/_next/static/css/51a32cc2673ebb08f19a.css.map\n' +
' ~/_next/static/css/f4680a2f36010d1871b1.css.map\n' +
' ~/_next/static/css/faa381b38c7896aac3d4.css.map',
stderr: 'Failed to compile.\n' +
'\n' +
"ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' in '/Users/dmg/Projects/website/node_modules/pnp-webpack-plugin'\n" +
'\n' +
'\n' +
'> Build error occurred\n' +
'Error: > Build failed because of webpack errors\n' +
' at /Users/dmg/Projects/website/node_modules/next/dist/build/index.js:17:924\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
' at async Span.traceAsyncFn (/Users/dmg/Projects/website/node_modules/next/dist/telemetry/trace/trace.js:6:584)',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
16s › websiteonline › Error: Command failed with exit code 1: node_modules/.bin/next build
Failed to compile.
ModuleNotFoundError: Module not found: Error: Can't resolve 'pnpapi' in '/Users/dmg/Projects/website/node_modules/pnp-webpack-plugin'
> Build error occurred
Error: > Build failed because of webpack errors
at /Users/dmg/Projects/website/node_modules/next/dist/build/index.js:17:924
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Span.traceAsyncFn (/Users/dmg/Projects/website/node_modules/next/dist/telemetry/trace/trace.js:6:584)
info - Loaded env from /Users/dmg/Projects/website/.env.local
info - Using webpack 4. Reason: custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5
info - Checking validity of types...
info - Creating an optimized production build...
> Found 79 release files
> Analyzing 79 sources
> Rewriting sources
> Adding source map references
> Bundled 79 files for upload
> Uploaded release files to Sentry
> File upload complete (processing pending on server)
Source Map Upload Report
Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_ssgManifest.js
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js
Minified Scripts
~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js (no sourcemap ref)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/_next/static/IZoU9WY2jEv1QFJSVBlcO/_buildManifest.js.)
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js (sourcemap at 01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map)
~/_next/static/chunks/11.2e76be7885ca7f748058.js (sourcemap at 11.2e76be7885ca7f748058.js.map)
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js (sourcemap at 28.6d8be995f2d2a359ca29.js.map)
~/_next/static/chunks/30.a5eef510d68b93329255.js (sourcemap at 30.a5eef510d68b93329255.js.map)
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js (sourcemap at 31.7feaa9e338ef9fd1d419.js.map)
~/_next/static/chunks/32.2490d498aba74774cfeb.js (sourcemap at 32.2490d498aba74774cfeb.js.map)
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js (sourcemap at 33.2361fdd84ad29806c9a0.js.map)
~/_next/static/chunks/34.3de79551ad80a07e862d.js (sourcemap at 34.3de79551ad80a07e862d.js.map)
~/_next/static/chunks/35.16e091f2e999419dab4d.js (sourcemap at 35.16e091f2e999419dab4d.js.map)
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js (sourcemap at 54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map)
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js (sourcemap at 5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map)
~/_next/static/chunks/6.883d22ccf4334c757915.js (sourcemap at 6.883d22ccf4334c757915.js.map)
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js (sourcemap at 70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map)
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js (sourcemap at 844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map)
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js (sourcemap at c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map)
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js (sourcemap at e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map)
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js (sourcemap at f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map)
~/_next/static/chunks/framework.349d8128c43083da4feb.js (sourcemap at framework.349d8128c43083da4feb.js.map)
~/_next/static/chunks/main-cf105360c5e786e37d0b.js (sourcemap at main-cf105360c5e786e37d0b.js.map)
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js (sourcemap at 404-2457041fd3925a68f70d.js.map)
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js (sourcemap at _app-6ea72514b1bb3b3058ed.js.map)
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js (sourcemap at contact-us-2f516d0964f9f39111e5.js.map)
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js (sourcemap at faq-f0fb9d27d3eb7f08d8bb.js.map)
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js (sourcemap at forgot-password-92a194f9ec5b3e24bddf.js.map)
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js (sourcemap at index-342a9e0e566e6cbb257e.js.map)
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js (sourcemap at login-6862232def6dbc0fe3e3.js.map)
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js (sourcemap at privacy-policy-a37c9be147abc0962d70.js.map)
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js (sourcemap at refund-policy-ef602e8a859aeea46e09.js.map)
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js (sourcemap at secure-f8ac16ad5e730dc79cd8.js.map)
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js (sourcemap at terms-of-use-243393ee24a44abf6510.js.map)
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js (sourcemap at polyfills-439480c2336263a96e0b.js.map)
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js (sourcemap at webpack-a57895f974a085d3ae41.js.map)
Source Maps
~/_next/static/chunks/01d0f3d0e69bebe907a171b03e4387c5ff9c09e6.853fefa604eeabc3b40a.js.map
~/_next/static/chunks/11.2e76be7885ca7f748058.js.map
~/_next/static/chunks/28.6d8be995f2d2a359ca29.js.map
~/_next/static/chunks/29.22e4ef7df5eb6914ab77.js.map
~/_next/static/chunks/30.a5eef510d68b93329255.js.map
~/_next/static/chunks/31.7feaa9e338ef9fd1d419.js.map
~/_next/static/chunks/32.2490d498aba74774cfeb.js.map
~/_next/static/chunks/33.2361fdd84ad29806c9a0.js.map
~/_next/static/chunks/34.3de79551ad80a07e862d.js.map
~/_next/static/chunks/35.16e091f2e999419dab4d.js.map
~/_next/static/chunks/54bfb63a9214672e9fdf5594cd3656d7dc23ee02.39de7fc82c76a4b2ee56.js.map
~/_next/static/chunks/5eec9076b7122a47bb63baa280245b3614395d2a.e06299ce13dbc08a177c.js.map
~/_next/static/chunks/6.883d22ccf4334c757915.js.map
~/_next/static/chunks/70bd9e5327c5e0bfce5299b49021d19fded5792c.32e1e813dd87962b1f25.js.map
~/_next/static/chunks/844186b0001bd8483b56e26680e024f0b96dad79.5c7b783eeb76a9fac3e7.js.map
~/_next/static/chunks/c8f7fe3b0e41be846d5687592cf2018ff6e22687.e23785c99a0cb7708820.js.map
~/_next/static/chunks/e20aa5fdfc8669d8e4594cbc379971e8ee4bceb6.150875b45726028c4842.js.map
~/_next/static/chunks/f9f9025eb1978a5be16cbb1fab3a0794d8328076.8c11ddff50bc66ecd44f.js.map
~/_next/static/chunks/framework.349d8128c43083da4feb.js.map
~/_next/static/chunks/main-cf105360c5e786e37d0b.js.map
~/_next/static/chunks/pages/404-2457041fd3925a68f70d.js.map
~/_next/static/chunks/pages/_app-6ea72514b1bb3b3058ed.js.map
~/_next/static/chunks/pages/_error-7b01936f459338ea8a0a.js.map
~/_next/static/chunks/pages/contact-us-2f516d0964f9f39111e5.js.map
~/_next/static/chunks/pages/faq-f0fb9d27d3eb7f08d8bb.js.map
~/_next/static/chunks/pages/forgot-password-92a194f9ec5b3e24bddf.js.map
~/_next/static/chunks/pages/index-342a9e0e566e6cbb257e.js.map
~/_next/static/chunks/pages/login-6862232def6dbc0fe3e3.js.map
~/_next/static/chunks/pages/privacy-policy-a37c9be147abc0962d70.js.map
~/_next/static/chunks/pages/refund-policy-ef602e8a859aeea46e09.js.map
~/_next/static/chunks/pages/secure-f8ac16ad5e730dc79cd8.js.map
~/_next/static/chunks/pages/terms-of-use-243393ee24a44abf6510.js.map
~/_next/static/chunks/polyfills-439480c2336263a96e0b.js.map
~/_next/static/chunks/webpack-a57895f974a085d3ae41.js.map
~/_next/static/css/0328e91497d2e92f7934.css.map
~/_next/static/css/1bbfc3c6afd46d65a451.css.map
~/_next/static/css/51a32cc2673ebb08f19a.css.map
~/_next/static/css/f4680a2f36010d1871b1.css.map
~/_next/static/css/faa381b38c7896aac3d4.css.map
serverless.yml
websiteonline:
component: "@sls-next/serverless-component@1.19.0-alpha.55"
inputs:
timeout:
defaultLambda: 20
apiLambda: 15
imageLambda: 15
cloudfront:
api/*:
minTTL: 0
maxTTL: 0
defaultTTL: 0
domain: "website.online" # sub-domain defaults to www
Versions
- OS/Environment:
- @sls-next/serverless-component version: 1.19.0-alpha.55
- Next.js version: 10.2.0
- “@sentry/nextjs”: “^6.3.5”
Additional context
Checklist
- [ x] You have reviewed the README and FAQs, which answers several common questions.
- [ x] Please first try using the most recent
latestoralpha@sls-next/serverless-componentrelease version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the oldserverless-next.jscomponent and theserverless-next.jsplugin are deprecated and no longer maintained.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 21
For those of you still encountering this problem, try switching from
target: serverlesstotarget: experimental-serverless-tracein your next config. This helped resolve build errors in our test apps.We are still taking a look to see if there is a workaround when using the
target: serverlessconfig option, but so far nothing yet.See https://github.com/getsentry/sentry-javascript/issues/3575#issuecomment-848954576 for more context.
Works fine with those two:
hopefully this gets resolved soon. same issue happens when using sentry and trying to deploy on netlify serverless. so it could be a sentry issue as well.
from https://docs.sentry.io/platforms/javascript/guides/nextjs/:
were you able to solve it?
I got same issue. Add
useServerlessTraceTarget: truewas works for me.-I’m getting an error when I get the build. Can you help me?
`
-The error i got
@AbhiPrasad I can do that yes, but Sentry works fine, the error happens when uploading the Nextjs project with Github actions to serverless.
I resolved the Next.js build error locally, using ‘target: experimental-serverless-trace’ as you suggested.