init: writes enableLogs for @sentry/* v11, which fails typecheck
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 124
- フォーク
- 14
- 平均マージ
- 21時間 48分
- マージ済み PR(30日)
- 64
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Evaluate Twinkleplop for terminal code highlighting対応中かも @MathurAditya724 が 13 日前に担当しました。 オープンjared
getsentry/cli#1633 · コメント 1 件 · リアクション 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Evaluate Twinkleplop for local UI JSON highlighting対応中かも @MathurAditya724 が 13 日前に担当しました。 オープンjared
getsentry/cli#1632 · コメント 1 件 · リアクション 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
DB-plane provider_chat_options.* is accepted by config set but never merged into the loaded configオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
invertase/react-native-firebase#9364 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
cloudflare/mcp#271 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 4 日以内に返信
-
e2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信