-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nextjs] Default imports become undefined when using the SDK #8019
Comments
I assume you're importing |
Yeah. Specifically I am doing: // src/pages/api/auth/[...nextauth].ts
import { redisPool } from './redispool'; So insides the pages directory. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Waiting for a response still |
I am wondering, since the code you shared is:
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This should be fixed in the newest version of the SDK. Feel free to ping us if this is not the case for you! |
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.50.0
Framework Version
18.2.0
Link to Sentry event
No response
SDK Setup
server
client:
Steps to Reproduce
When using default imports/exports, somehow the module becomes undefined:
This is my
next.config.js
:Expected Result
Changing to use named exports fixes this issue:
I expected this to work without using named exports though.
Actual Result
as mentioned currently the above logs undefined.
Really confused why this is happening. If I don't use sentry default exports work perfectly fine.
Does sentry expect all imports to be named?
The text was updated successfully, but these errors were encountered: