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
captureConsoleIntegration cannot be added as integration #11761
Comments
Hello, thanks for writing! I tested your setup with version 7.109.0 and 7.112.1 and was not able to reproduce the issue. Maybe there is still an old type definition cached somewhere. You could try to delete your About 4: The |
@s1gr1d I checked your suggestion (deleting |
Hello, can you try to remove import { init as sentryInit, captureConsoleIntegration } from "@sentry/nextjs";
sentryInit({
integrations: [captureConsoleIntegration()],
}); does that work? Since 7.112.0 we re-export these integrations from the main SDK packages, so it should not be necessary to install |
That worked, thank you. You may close this issue now.
…On Mon, 29 Apr 2024 at 13:40, Francesco Novy ***@***.***> wrote:
Hello, can you try to remove @sentry/integrations from your package.json,
update @sentry/nextjs to 1.112.1, and updated your import like this:
import { init as sentryInit, captureConsoleIntegration } from ***@***.***/nextjs";
sentryInit({
integrations: [captureConsoleIntegration()],});
does that work? Since 7.112.0 we re-export these integrations from the
main SDK packages, so it should not be necessary to install
@sentry/integrations anymore.
—
Reply to this email directly, view it on GitHub
<#11761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD57URW44H5DYW7TJ3WEOLY7YWURAVCNFSM6AAAAABGWHVUTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSGQ4TMNRQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.112.1
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
captureConsoleIntegration
but getting the TypeScript error:TS2322: Type IntegrationFnResult is not assignable to type Integration
gives the following TypeScript error:
consoleIntegration()
is the same ascaptureConsoleIntegration()
: it lacks thelevels
configuration option plus it's not officially documentedExpected Result
Re-export of
captureConsoleIntegration
or migration guide if it's deprecated.Actual Result
TypeScript error (see Steps to Reproduce)
The text was updated successfully, but these errors were encountered: