New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nextjs capture console integration typescript error and doesn't work #11826
Comments
Hello, thanks for writing! You can quickly grep it with the following example commands: |
As we included the integration to
|
Hi, thanks for answering. When I import the itnegration from the
I get the following error:
My sentry version is |
You want |
Could you verify if the steps outlined above, plus using |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.105.0
Framework Version
13.4.19
Link to Sentry event
No response
SDK Setup
// This file configures the initialization of Sentry on the client.
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
import { captureConsoleIntegration } from "@sentry/integrations";
Sentry.init({
dsn: "https://2a75dde0ac4fbfcadf73320cd05cb65a@o4507152635658240.ingest.de.sentry.io/4507152692609104",
});
Steps to Reproduce
Expected Result
Console errors to be captured and typescript to not throw an error.
Actual Result
Typescript error last three lines.
`Types of property 'attachmentType' are incompatible.
Type 'string | undefined' is not assignable to type 'AttachmentType | undefined'.
Type 'string' is not assignable to type 'AttachmentType | undefined'.`
The text was updated successfully, but these errors were encountered: