Filip Pyrek [AWS Hero]
02/17/2022, 1:25 PM@package/logger
) to my function. - that works ✅
When error is thrown inside the local lerna package (@package/logger
), the stack trace is broken and doesn’t show much. ❌
For example:
{
"errorType": "some-error",
"errorMessage": "hello",
"name": "some-error",
"stack": [
"some-error: hello",
" at l (/var/task/src/lambda.js:1:386)",
" at Runtime.p [as handler] (/var/task/src/lambda.js:1:467)",
" at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"
]
}
The stack trace should lead to @package/logger
files.Ashishkumar Pandey
02/17/2022, 1:28 PMFilip Pyrek [AWS Hero]
02/17/2022, 1:30 PM.js.map
files in the artifacts folder, that it’s enabled by default.
I’m going to try that. 👍thdxr
02/17/2022, 1:31 PMthdxr
02/17/2022, 1:31 PMAshishkumar Pandey
02/17/2022, 1:32 PMthdxr
02/17/2022, 1:32 PMFilip Pyrek [AWS Hero]
02/17/2022, 1:36 PMAshishkumar Pandey
02/17/2022, 1:37 PMFilip Pyrek [AWS Hero]
02/17/2022, 1:37 PMAshishkumar Pandey
02/17/2022, 1:38 PM