Closed zeckdude closed 2 years ago
Hi @zeckdude, thanks for opening an issue! Do you mind if you could provide some of the info that was asked in https://github.com/getsentry/sentry-javascript/pull/4860#issuecomment-1163546404:
npm ls @sentry/utils
and npm ls @sentry/nextjs
(if you're using yarn, yarn why @sentry/utils
and yarn why @sentry/nextjs
works just as well!)Also would be helpful would be your package.json
(specifically your deps and dev deps).
I'm unable to reproduce the error you've got. Here's the steps I took:
yarn create next-app
to install a fresh NextJS installation with NextJS v12 and Webpack 5yarn add @sentry/nextjs
which installed Sentry NextJS SDK v7.2.0npx @sentry/wizard -i nextjs
, and changed the SENTRY_DSN to use a environmental variable as per: https://nextjs.org/docs/basic-features/environment-variablesyarn dev
and saw no errors on the console. I also ran yarn build
and saw no errors.Does that sounds similar to what you did?
Here is an example repo that resulted from following the steps above: https://github.com/AbhiPrasad/gh-5295-nextjs-getGlobalSingleton
@AbhiPrasad I really appreciate your prompt attention. I'm not sure why that error appeared but after I downgraded to version 6 and then added the latest again, it worked fine now. I'll close the issue.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
^7.2.0
Framework Version
^7.2.0
Link to Sentry event
No response
Steps to Reproduce
Expected Result
The app should start normally without an error
Actual Result
Shown in terminal and blocking app from starting: