Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js
) in your SDK setup.
@sentry/serverless
SDK Version
7.43.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
import * as Sentry from '@sentry/serverless'
Sentry.GCPFunction.init({
dsn: '',
environment: process.env.NODE_ENV,
})
Steps to Reproduce
Sentry.captureException(new Error('test'))
Expected Result
Don't crash
Actual Result
Crash
TypeError: Sentry.captureException is not a function
at file:///Users/maxpain/dev/gptaskbot/src/index.ts:64:8
at processTicksAndRejections (node:internal/process/task_queues:95:5)