Open 0x33dm opened 2 months ago
arch btw π
would you mind checking your dependency lockfile for any versions of @sentry/*
dependencies that may not be aligned? The only exception to this should be @sentry/webpack-plugin
.
Otherwise, until we have figured this out, you could try migrating to the next major version 8.0.0-rc.2 of the SDK. That probably fixes it right away. Migration guide is here: https://docs.sentry.io/platforms/javascript/guides/nextjs/migration/v7-to-v8/
arch btw π
πππ πͺ
would you mind checking your dependency lockfile for any versions of
@sentry/*
dependencies that may not be aligned? The only exception to this should be@sentry/webpack-plugin
.
I posted all the sentry lines on my lock file on my post?
Doesn't seem to be unaligned, but i will triple check!
Otherwise, until we have figured this out, you could try migrating to the next major version 8.0.0-rc.2 of the SDK. That probably fixes it right away. Migration guide is here: https://docs.sentry.io/platforms/javascript/guides/nextjs/migration/v7-to-v8/
Yes, will do that and get back to you. This is ideal
I posted all the sentry lines on my lock file on my post?
Ah I didn't scroll down in the code block. Sorry.
I posted all the sentry lines on my lock file on my post?
Ah I didn't scroll down in the code block. Sorry.
i run npx @sentry/migr8@latest
and it did no changes to my code.
I'm currently running 7.114, I was expecting it to update my package.json to the latest 8.x release?
Since it didn't do it, I'm guessing I'm supposed to run the npm install
for 8.x myself and then do all the other steps on the page you linked, is that assumption correct?
@sentry/migr8
unfortunately doesn't take care of everything for you. Especially @sentry/nextjs
specific changes. If you do not have any special sentry code except for the basic setup you only have to follow the docs I shared! Generally when migr8 doesn't do any changes in your code it means that you don't have anything custom.
I'm having the same issue. I did a fresh install of Sentry with npx @sentry/wizard@latest -i nextjs
and am getting this:
./app/layout.tsx
Attempted import error: '_nullishCoalesce' is not exported from '@sentry/utils' (imported as '_nullishCoalesce').
Import trace for requested module:
./app/layout.tsx
./app/layout.tsx
Attempted import error: '_optionalChain' is not exported from '@sentry/utils' (imported as '_optionalChain').
Import trace for requested module:
./app/layout.tsx
./app/layout.tsx
Attempted import error: '_nullishCoalesce' is not exported from '@sentry/utils' (imported as '_nullishCoalesce').
Import trace for requested module:
./app/layout.tsx
./app/layout.tsx
Attempted import error: '_optionalChain' is not exported from '@sentry/utils' (imported as '_optionalChain').
Import trace for requested module:
./app/layout.tsx
./app/layout.tsx
Attempted import error: '_optionalChain' is not exported from '@sentry/utils' (imported as '_optionalChain').
Import trace for requested module:
./app/layout.tsx
I'm using @sentry/nextjs@8.9.2
with next@14.2.4
@bigvisionmalachibazar please wipe your node_modules, wipe your .next folder, reinstall dependencies and check that you do not have @sentry/*
dependencies on different versions in your lockfile. Thanks!
I can report that i don't get the error on ubuntu. weirdly.
before on arch i tried cleaning everything and i still got the error again and again even though i checked all the versions, etcs..
maybe @bigvisionmalachibazar could add his OS as part of the report?
This should not be an issue anymore on version 8 of the SDK.
I'm using
@sentry/nextjs@8.9.2
withnext@14.2.4
Same version, same logs
If anybody would be able to provide a simple reproduction we can take a deeper look.
@bigvisionmalachibazar please wipe your node_modules, wipe your .next folder, reinstall dependencies and check that you do not have
@sentry/*
dependencies on different versions in your lockfile. Thanks!
This fixed it for me! I am running PopOS.
I also get this - brand new install of everything. There is my OS below.
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000
Available memory (MB): 65536
Available CPU cores: 10
Binaries:
Node: 18.19.0
npm: 10.2.3
Yarn: 1.22.19
pnpm: N/A
Relevant Packages:
next: 14.2.4 // Latest available version is detected (14.2.4).
eslint-config-next: 14.2.4
react: 18.3.1
react-dom: 18.3.1
typescript: 5.4.5
Next.js Config:
output: N/A
@annez please open a new issue with reproduction thanks!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.114.0
Framework Version
14.2.3
Link to Sentry event
No response
SDK Setup
sentry.client.config.ts
Steps to Reproduce
pnpm dev
Running:
Expected Result
No console logs on the server side
Actual Result