Repository navigation
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.21.0
Framework Version
@sentry/nextjs
Link to Sentry event
No response
Steps to Reproduce
- intrall
@sentry/nextjs - create page with getServerSideProps
- deploy app to vercel
Expected Result
The page to load with no issue
Actual Result
[GET] /login
11:31:32:81
Function Status:
None
Edge Status:
500
Duration:
111.82 ms
Init Duration:
N/A
Memory Used:
60 MB
ID:
sin1::gzk9v-1669174293167-9e37795d4ec1
User Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
2022-11-23T03:31:33.051Z e96e7e5e-5f9e-41f6-a3c6-11fa309c3416 ERROR Error: Cannot find module './config/withSentryConfig.js'
Require stack:
- /var/task/node_modules/@sentry/nextjs/cjs/index.server.js
- /var/task/.next/server/pages/_document.js
- /var/task/node_modules/next/dist/server/require.js
- /var/task/node_modules/next/dist/server/next-server.js
- /var/task/___next_launcher.cjs
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.mod._resolveFilename (/var/task/node_modules/next/dist/build/webpack/require-hook.js:27:32)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/var/task/node_modules/@sentry/nextjs/cjs/index.server.js:19:26)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/task/node_modules/@sentry/nextjs/cjs/index.server.js',
'/var/task/.next/server/pages/_document.js',
'/var/task/node_modules/next/dist/server/require.js',
'/var/task/node_modules/next/dist/server/next-server.js',
'/var/task/___next_launcher.cjs'
],
page: '/login'
}
RequestId: e96e7e5e-5f9e-41f6-a3c6-11fa309c3416 Error: Runtime exited with error: exit status 1
Runtime.ExitError
Metadata
Metadata
Assignees
Labels
No labels
Activity
AndreyMarchuk commentedon Nov 23, 2022
Nappsel commentedon Nov 23, 2022
Confirm, have a same issue.
On the local environment, everything works fine, but after building the production, I see the following error in the docker for each page request.
Downgrade to v7.20.1 resolves the issue.
SDK Version
7.21.0
Next.js Version
12.3.1
lobsterkatie commentedon Nov 23, 2022
Hi, all.
Thanks for reporting this! I believe I know what the problem is, and I'm working on a fix. Until then, as you have discovered, downgrading to 7.20 should solve the problem.
lforst commentedon Nov 23, 2022
@roblegaspi Hi, we just released version
7.21.1. Can you check whether upgrading fixes this problem for you?roblegaspi commentedon Nov 23, 2022
Hi @lforst , It is confirmed that
@sentry/nextjsversion7.21.1fixed the issue. Thanks mate.chore(deps): Bump axios from 1.13.5 to 1.15.0 in /dev-packages/e2e-te…
chore(deps): Bump axios from 1.13.5 to 1.15.0 (#20180)