Skip to content

Conversation

@marshall-lee
Copy link
Contributor

@marshall-lee marshall-lee commented Nov 4, 2020

Initially, I thought there's no need to catch the error of require('aws-sdk/global') because this package is always available on AWS Lambda and even in the sam local emulator.

However, in some environments it could be missing. Examples of such environments is netlify dev or it could be simply a unit-test environment without any packages.

Fixes #3000.

Initially, I thought there's no need to catch the error of
`require('aws-sdk/global')` because this package is always available on
AWS Lambda and even in the `sam local` emulator.

However, in some environments it could be missing. Examples of such
environments is netlify dev or it could be simply a unit-test environment
without any packages.

Fixes getsentry#3000.
@HazAT HazAT merged commit 0a2bfdb into getsentry:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry.AWSLambda.init doesn't work with Netlify dev

3 participants