-
-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Labels
BugIssue typeIssue type
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/node
SDK Version
7.86.0
Framework Version
No response
Link to Sentry event
https://fl101.sentry.io/issues/4715851450/events/4f6786772d4045d4b57a56cab225e50e/
SDK Setup
N/A
Steps to Reproduce
https://github.com/richardsimko/sentry-sourcemap-bug
yarn installyarn run tscyarn run sentry-cli sourcemaps inject ./buildyarn run sentry-cli sourcemaps resolve build/test.js.map -l 6(To simulate the lookup from one of the errors)
This happens in the live Sentry environment as well, the stack trace in the linked event are also off by 2 lines.
Expected Result
Source line is line 7 in test.ts
Actual Result
Source line is line 5 in test.ts
source map path: "build/test.js.map"
source map type: regular
lookup line: 5, column: 0:
name: not found
source file: "/test.ts"
source line: 5
source column: 13
minified line: 4
minified column: 15
source code:
console.log("test2");
switch (process.env.TEST) {
case "test":
throw new Error("test");
default:
throw new Error("default");
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugIssue typeIssue type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Waiting for: Product Owner
Status
No status