AnomalyInnovations/serverless-bundle

Sourcemaps with typescript struggle

Dashue opened this issue · 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

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

I have the same problem
image