-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
BugPackage: solidstartIssues related to the Sentry SolidStart SDKIssues related to the Sentry SolidStart SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
- Create a new solidstart app
npm init solid@latest
- Enable drizzle on the project setup
- Add Sentry as per: https://docs.sentry.io/platforms/javascript/guides/solidstart/
- Add a manual throw or an unhandled error somewhere in the code to test Sentry
- 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.
ericwaetke
Metadata
Metadata
Assignees
Labels
BugPackage: solidstartIssues related to the Sentry SolidStart SDKIssues related to the Sentry SolidStart SDK
Projects
Status
No status