Skip to content

TypeError Sentry.Integrations.CaptureConsole is not a constructor #79

Description

@AlexJSully

TypeError: Sentry.Integrations.CaptureConsole is not a constructor

Issue ID: 7085802171
Project: small-dev-talk
Date: 12/3/2025, 9:47:34 PM

Issue Summary

Sentry TypeError: CaptureConsole is not a constructor
What's wrong: Sentry initialization fails with a TypeError; CaptureConsole integration is not recognized as a constructor.
In the trace: The error occurs during application startup in index.html; no other session context is immediately relevant.
Possible cause: The Sentry SDK version being used likely lacks or has renamed the CaptureConsole integration, suggesting an outdated SDK or incorrect import path.

Tags

  • browser: Chrome 99.0.4844
  • browser.name: Chrome
  • environment: production
  • handled: no
  • level: error
  • mechanism: onerror
  • os: Windows >=10
  • os.name: Windows
  • url: https://smalldevtalk.net/index.html
  • user: ip:116.179.33.140

Exception

Exception 1

Type: TypeError
Value: Sentry.Integrations.CaptureConsole is not a constructor

Stacktrace

 Unknown function in /index.html [Line 143] (In app)
				// @AlexJSully when updating the package version number in package.json, update the version number here as well.
				release: "[email protected]",

				integrations: [
					new Sentry.BrowserTracing(),
					new Sentry.Integrations.CaptureConsole({  <-- SUSPECT LINE
						levels: ["error"],
					}),
				],

				// We recommend adjusting this value in production, or using tracesSampler for finer control

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions