Skip to content

No error events reported by SolidStart SDK #15242

@rodolfoBee

Description

@rodolfoBee

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/solidstart

SDK Version

8.52.1

Framework Version

Solidstart 1.0.11

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Create a new solidstart app npm init solid@latest
  2. Enable drizzle on the project setup
  3. Add Sentry as per: https://docs.sentry.io/platforms/javascript/guides/solidstart/
  4. Add a manual throw or an unhandled error somewhere in the code to test Sentry
  5. Run the app (dev or prod mode)

Expected Result

The app to run correctly and the error to be visible in Sentry

Actual Result

First, drizzle is breaks. to fix it the user needs to add the following to the init in instrument.server.mjs

registerEsmLoaderHooks: { onlyIncludeInstrumentedModules: true }

The error:

[vite] Error when evaluating SSR module /src/api/server.ts: failed to import "drizzle-orm"
|- SyntaxError: [vite] The requested module 'drizzle-orm' does not provide an export named 'eq'
    at analyzeImportedModDifference ([ROOT_PATH]/solidstart/solidSentry/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:52053:15)
    at nodeImport ([ROOT_PATH]/solidstart/solidSentry/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:53060:5)
    at async ssrImport ([ROOT_PATH]/solidstart/solidSentry/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:52914:16)
    at async eval ([ROOT_PATH]/solidstart/solidSentry/src/api/server.ts:6:31)
    at async instantiateModule ([ROOT_PATH]/solidstart/solidSentry/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:52972:5)

After that, no unhandled errors are sent to Sentry. Only manual errors with captureException are reported.

Transactions are reported as expected.

The issue is also reported in this Discord thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions