init: writes enableLogs for @sentry/* v11, which fails typecheck
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- cli
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 124
- Forks
- 14
- Merge médio
- 21h 48min
- PRs com merge (30d)
- 64
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/cli
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Evaluate Twinkleplop for terminal code highlightingTalvez já em andamento @MathurAditya724 assumiu há 15 dias. Abertajared
getsentry/cli#1633 · 1 comentário · 2 reações · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Evaluate Twinkleplop for local UI JSON highlightingTalvez já em andamento @MathurAditya724 assumiu há 15 dias. Abertajared
getsentry/cli#1632 · 1 comentário · 2 reações · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/cli
Issues semelhantes
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
melgarafael/DeskcommCRM#2657 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
MystenLabs/MemWal#1163 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Mondriaan
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
knaw-huc/textannoviz#709 ·
Mantenedores costumam responder em até 1 dia
-
billion-context-pi
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ranxianglei/billion-context#2521 · 3 comentários ·
Mantenedores costumam responder em até 1 dia