init: writes enableLogs for @sentry/* v11, which fails typecheck
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
Locate where sentry init renders the config templates for instrumentation-client.ts, sentry.server.config.ts and sentry.edge.config.ts in this TypeScript CLI repo, and how the installed @sentry/* version is (or is not) read during init. Gate emission of enableLogs: true on the resolved SDK major version being ≤ 10, keeping the option for older SDKs. Done means tsc --noEmit passes on a Next.js project with @sentry/nextjs 11 after init, and the generated configs for a v10 project still contain enableLogs — check for existing snapshot/unit tests around init config generation to extend.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
On a project that resolves @sentry/nextjs 11.x, sentry init (0.45.0) writes enableLogs: true into instrumentation-client.ts, sentry.server.config.ts and sentry.edge.config.ts. SDK 11 removed that option (@sentry/core 11.4.0 Options has no enableLogs; log capture is no longer gated), so tsc fails:
error TS2353: Object literal may only specify known properties, and 'enableLogs' does not exist in type 'BrowserOptions'.
One error per config file. At runtime logs still flow, so the only effect is a broken typecheck — but that blocks CI on any repo with tsc --noEmit in its checks.
Repro
- Next.js 16 app,
pnpm add @sentry/nextjs@^11. sentry init, select logs.pnpm exec tsc --noEmit.
Seen on getsentry/sentry-devex#91.
Expected
Omit enableLogs for SDK ≥ 11, keep it for ≤ 10.
Possibly related: #1382 (logs selected, Logs page still shows onboarding) — different symptom, but both are "init's logs setup does not match the installed SDK".
Created with Claude Code
- Lenguaje dominante
- TypeScript
- Estrellas
- 124
- Forks
- 14
- Merge medio
- 21 h 48 min
- PR fusionados (30 d)
- 64
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Evaluate Twinkleplop for terminal code highlightingPosiblemente ocupada @MathurAditya724 la tomó hace 13 días. Abiertojared
getsentry/cli#1633 · 1 comentario · 2 reacciones · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Evaluate Twinkleplop for local UI JSON highlightingPosiblemente ocupada @MathurAditya724 la tomó hace 13 días. Abiertojared
getsentry/cli#1632 · 1 comentario · 2 reacciones · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/cli
Issues similares
-
DB-plane provider_chat_options.* is accepted by config set but never merged into the loaded configAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)Posiblemente ocupada @SelaseKay la tomó hoy. AbiertoNeeds Attention type: enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
invertase/react-native-firebase#9364 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
clouflaure de fernandoAbiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
cloudflare/mcp#271 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 4 días
-
[fullsend] E2E: rhdh-version-override — run-e2e.sh overrides RHDH_VERSION to non-existent 2.1Abiertoe2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · 1 comentario ·
Los mantenedores suelen responder en 1 día