-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I've been having issues using sourceMaps: true, it doesn't seem to append app://. After some debugging I found the cause to be the following line:
serverless-sentry-lib/src/index.ts
Line 168 in e0b4c26
| frame.filename = `app:///${path.basename(frame.filename)}`; |
Wrapping this line in a try catch to log any errors, and throws the following error:
Cannot read properties of undefined (reading 'basename') at RewriteFrames.iteratee
In the dist/index.js file this looks like:
frame.filename = "app:///".concat(path_1.default.basename(frame.filename));
I updated this to the following to make it work:
frame.filename = "app:///".concat(path_1.basename(frame.filename));
I'm wondering if this import statement should be import * as path from 'path'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels