Split `node` export condition of `@sentry/nextjs` into `import`/`require`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- next.js, node.js, typescript, webpack
- 領域
- backend, build-system, devtools
調査の方向性
Start by reading the package export conditions for @sentry/nextjs and the related changes in #25599 and #22791; the issue does not name source files or tests. The work is complete when Node ESM imports and bundlers select the ESM server build while default imports keep working, with the listed Next.js versions, bundlers, cacheComponents, custom server, and auto-instrumentation scenarios covered. The issue describes major-version behavior changes and several cross-cutting compatibility checks.
索引モデルが issue の本文から書いたものです。
説明
Description
exports["."].node points to the CJS build, so Node ESM imports and bundlers that build the Next.js server never get the ESM server build.
Blockers (from #23628):
- 87 browser-only names are missing from the ESM server build.
cacheComponentsprerendering rejects thecrypto.randomUUID()call insidecaptureException.
Keep ESM default imports (import Sentry from '@sentry/nextjs') working with a default export in the ESM server build.
Not breaking by itself, but reasons to ship it in a major (planned v12):
- Every Next.js server bundle switches to the ESM builds of
@sentry/nextjsand@sentry/node. @sentry/nodebehaves differently as ESM (default integrations, auto-instrumentation differences) - see https://github.com/getsentry/sentry-javascript/pull/10928 (removes CJS-only integrations)- Mixed
require/importcan load two SDK copies in one process - Bundlers check named imports at build time, so names that are missing from the ESM build become build errors
When testing, cover webpack and Turbopack on all supported Next.js versions, cacheComponents, a custom server, and check that auto-instrumentation spans (e.g. http, DB) still show up.
@sentry/remix pins node to CJS the same way.
Refs #22791, https://github.com/getsentry/sentry-javascript/pull/25599
- 主要言語
- TypeScript
- スター
- 8.8k
- フォーク
- 1.9k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 744
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-javascript のほかの issue
-
AWS Lambda Waiting for: Product Owner
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
getsentry/sentry-javascript#26910 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Only create Nuxt database and storage spans when there is a parent span再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンImprovement Nuxt
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
getsentry/sentry-javascript#25805 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Only create Cloudflare storage and D1 db spans when there is a parent span再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンCloudflare Workers Improvement Spans
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-javascript#25804 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Core Feature: Typescript Meta: Breaking
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-javascript#25286 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
getsentry/sentry-javascript#24200 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-javascript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
garrytan/gbrain#10437 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"対応中かも @acmerfight が今日担当しました。 オープンuntriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
earendil-works/pi#12573 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
agentes-chat/agentes-chat#1506 ·
メンテナーはふだん 1 日以内に返信
-
comp/desktop desktop/files os/windows P2 type/perf
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
NousResearch/hermes-agent#160359 ·
メンテナーはふだん 1 日以内に返信
-
Missing repro Platform: Android
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
software-mansion/react-native-reanimated#11554 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信