serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
783 stars 223 forks source link

Updates instruction to install source-map-support as regular dependency #211

Open arturopie opened 4 years ago

arturopie commented 4 years ago

source-map-support is imported inside the function, so I don't think it should be installed as a dev dependency.

If I install source-map-support as a dev dependency, and invoke the function on AWS Lambda, I get the following error Runtime.ImportModuleError: Error: Cannot find module 'source-map-support/register'

I'm new to Serverless and Typescript, so I might be completely mistaken here. Let me know.

dimadesu commented 3 years ago

@arturopie This tripped me up today. Thanks for logging the issue, this definitely needs to be updated.

I moved source-map-support from dev dependency to the dependency and that fixed the problem for me. Cheers!