Skip to content
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

fix(remix): Guard against missing default export for server instrument #8909

Merged
merged 1 commit into from Aug 30, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Aug 30, 2023

Fixes #8904

I don't know enough about remix to know if/when this can actually happen, but doesn't hurt to guard anyhow!

@mydea mydea merged commit 32befda into develop Aug 30, 2023
47 checks passed
@mydea mydea deleted the fn/fix-remix-type branch August 30, 2023 11:52
@ted-marozzi
Copy link

Hey @mydea , is it possible that this change is causing this error?

- error Detected default export in '/Users/tedmarozzi/Code/mermaid-flow/app/api/auth/[...nextauth]/route.ts'. Export a named export for each HTTP method instead.

I am using "@sentry/nextjs": "^7.67.0-beta.0", on the app dir and this error is shown, when i downgrade to "@sentry/nextjs": "^7.66.0", it goes away.

This pr seems to be something to do with default exports.

@mydea
Copy link
Member Author

mydea commented Sep 2, 2023

Hey, this change only affects remix, so should not have any effect on nextjs. Could you open an issue with details of your setup & what error you are seeing?

@ted-marozzi
Copy link

Thanks mate, for future Githubber I created this issue: #8934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Remix] Cannot read properties of undefined (reading '__sentry_original__')
3 participants