-
-
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
V8 Integrations are broken #12582
Comments
@onurtemizkan could you take a look? |
Hi @depsimon, are you using a built-in Remix server or an Express custom server in your project? |
@onurtemizkan It's the built-in Remix server locally. Deployed on Vercel if that matters, but the issue is happening locally as well. |
So I guess the problem is that with the new version, the Sentry SDK should be initialized before any other imports to your Even moving it to the top of the file before any other imports won't help because ESBuild reorders the imports (which is out of our control) in the bundle. So the workaround for that for the time being is running the remix server with NODE_OPTIONS='--import=./instrument.server.mjs' remix-serve build
# or
NODE_OPTIONS='--require=./instrument.server.cjs' remix-serve build If that doesn't help, you can also try removing The docs are updated so you can refer to: https://docs.sentry.io/platforms/javascript/guides/remix/manual-setup/ |
@onurtemizkan should we make the wizard add |
I'm not sure this solves the issue. To test I removed the dynamic import of monitoring.server.js, moved its content to ./monitoring.mjs and updated the It's really relative to the integrations exported by @senty/remix I believe. I tried to remove them while keeping the
|
@AbhiPrasad, yes makes sense. I'll open a PR for that 👍 @depsimon, that's interesting. I'll try to reproduce this locally. |
@depsimon, we have updated the exports from Remix SDK which should resolve this issue. Please reopen if you have problems with the next release. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
8.10.0
Framework Version
Remix 2.9.2
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
remix vite:build
__vite_ssr_import_0__.nativeNodeFetchIntegration is not a function at eval (/Users/simon/Code/Project/monorepo/apps/project/app/modules/sentry/monitoring.server.ts:32:27) at async instantiateModule (file:///Users/simon/Code/Project/monorepo/node_modules/.pnpm/vite@5.2.11_@types+node@20.12.12/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:9
Expected Result
Integrations being added.
Actual Result
Integrations are not recognized and break the app.
The text was updated successfully, but these errors were encountered: