serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

Sourcemaps with typescript struggle

Open Dashue opened this issue 2 years ago • 2 comments

I'm having trouble getting sourcemaps with typescript working.

I added to the serverless.yml

custom:
  bundle:
    sourcemaps: true # Enable source maps

It builds, deploys and runs perfectly, however when I throw an error I receive cloudwatch logs saying there was an error with the file@1:20549 info and then the following error:

error while getting callsite source context: ENOENT: no such file or directory, open '/var/task/src/webpack:/services/{myservicename_redacted}/src/{myservicefile_redacted}.ts'

It appears that the sourcemaps are referencing .ts files which I can understand doesn't work as they are not part of the deploy.

Thanks in advance for any help

Dashue avatar Mar 25 '22 17:03 Dashue

I understand everyone's busy but any chance of getting your input @jayair @thomaschaaf or just a nudge/pointer to whom might know?

Dashue avatar Mar 30 '22 11:03 Dashue

I have the same problem image

luismramirezr avatar Apr 02 '22 21:04 luismramirezr