You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
The SolidStart SDK cannot currently handle these errors. We'll have to spend more time investigating but in the meantime, to get errors reported in your API you can wrap server actions with withServerActionInstrumentation like so:
exportasyncfunctionloginOrRegister(formData: FormData){returnwithServerActionInstrumentation('loginOrRegister',async()=>{
...
thrownewError('Error from loginOrRegister')...
This isn't yet documented anywhere and it's not the nicest experience but it should at least catch errors in here, it'll also create an instrumentation span for your server action.
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
npm init solid@latest
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
The error:
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.
The text was updated successfully, but these errors were encountered: