-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
getsentry/sentry-wizard
#592Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
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?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
8.9.2
Framework Version
Next.js 14.1.4
Link to Sentry event
No response
SDK Setup
This is using a basic wizard install with no additional customization.
Steps to Reproduce
- Follow the wizard steps (I used
npx @sentry/wizard@latest -i nextjs) - Add the example error page (
src/app/global-error.tsx) - After the wizard is finished, attempt to run
npm run build
Expected Result
Adding Sentry shouldn't cause npm run build on my project to fail.
Actual Result
Instead it causes a bunch of TypeScript compilation errors which cause the build to not complete.
Linting and checking validity of types .Failed to compile.
./src/app/global-error.tsx:7:39
Type error: Binding element 'error' implicitly has an 'any' type.
5 | import { useEffect } from "react";
6 |
> 7 | export default function GlobalError({ error }) {
| ^
8 | useEffect(() => {
9 | Sentry.captureException(error);
10 | }, [error]);Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Projects
Status
Waiting for: Product Owner