Repository navigation
Closed
Labels
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/remix
SDK Version
7.93.0
Framework Version
Remix Run 1.9.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: "https://72d0d770e46bf0234fd3479c9e974bd0@o1350334.ingest.sentry.io/4505785764085760",
tracesSampleRate: 1
});
Steps to Reproduce
Remix Wizard
After installing using the wizard npx @sentry/wizard@latest -i remix my Remix v1 server is broken. In the meantime I will upgrade Remix to v2... any suggestions would be appreciated. Sentry is my favorite tool!
Expected Result
😢 We expect the app to render properly with Sentry monitoring enabled.
Actual Result
Lambda init error
Error: TypeError: Cannot read properties of undefined (reading 'length')
Lambda: @http any /*
Source: /Users/cj/ComSci/Code/app.io/server
: Cannot read properties of undefined (reading 'length')
Stack trace:
TypeError: Cannot read properties of undefined (reading 'length'), at splitPath (/Users/cj/ComSci/Code/app.io/node_modules/@sentry/src/path.ts:59:30), at Object.dirname (/Users/cj/ComSci/Code/app.io/node_modules/@sentry/src/path.ts:185:82), at Object.createGetModuleFromFilename (/Users/cj/ComSci/Code/app.io/node_modules/@sentry/src/module.ts:13:22), at Object. (/Users/cj/ComSci/Code/app.io/node_modules/@sentry/src/sdk.ts:243:86), at Module._compile (node:internal/modules/cjs/loader:1256:14), at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10), at Module.load (node:internal/modules/cjs/loader:1119:32), at Function.Module._load (node:internal/modules/cjs/loader:960:12), at Module.require (node:internal/modules/cjs/loader:1143:19), at require (node:internal/modules/cjs/helpers:110:18)
Using the manual method of installation produced the same results 🤔
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsNo status
Activity
onurtemizkan commentedon Jan 18, 2024
Hi @therealsiege, thanks for reporting.
Could you please provide us with a minimal reproduction so we can assist you further?
Lms24 commentedon Jan 18, 2024
Hi @therealsiege, looking at the stack trace, I think your issue might be a duplicate to #10150. The error looks quite similar. This bug was fixed in #10155. We're going to release a new SDK version with the fix today - would you mind giving the new version a try once it's out to check if the error still occurs? Thanks!
In case it still persists, please provide a minimal reproduction
(cc @onurtemizkan)
marciodiasdeveloper commentedon Jan 18, 2024
+1
therealsiege commentedon Jan 18, 2024
Hi @Lms24, @onurtemizkan
Thank you tons for the quick reply, I'll check it out as soon as the SDK is available.
therealsiege commentedon Jan 18, 2024
Hi again @Lms24
Should I use
7.93.0Just wondering if that sdk fix went out yet
onurtemizkan commentedon Jan 19, 2024
Hi @therealsiege, it will be a part of
7.94.0- #10252therealsiege commentedon Jan 19, 2024
@onurtemizkan Sorry for my impatience 😶🌫️
lforst commentedon Jan 22, 2024
@therealsiege 7.94.1 was released. Please try it out and let us know if it fixed your issue!
therealsiege commentedon Jan 22, 2024
🎉 It's FIXED!! Thank you tons!!!
@lforst @onurtemizkan @marciodiasdeveloper @Lms24