-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
Which project does this relate to?
Create Tanstack App
Describe the bug
The following error occurs on startup when including Sentry as an addon.
TypeError: Cannot read properties of undefined (reading 'VITE_SENTRY_DSN')
at file:///Users/marcusheinonen/code/web/sentry-bug-example/instrument.server.mjs:3:24
at ModuleJob.run (node:internal/modules/esm/module_job:327:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:663:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:94:9)
I believe this line needs to be updated to use process.env.VITE_SENTRY_DSN instead.
Your Example Website or App
https://github.com/MHeinonen/tsstart-sentry-bug
Steps to Reproduce the Bug or Issue
- Run create @tanstack/start
- Include sentry addon
- Run
npm run dev
Expected behavior
Expected behavior is for VITE_SENTRY_DSN to be defined.
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: NA
- Version: NA
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels