Split `node` export condition of `@sentry/nextjs` into `import`/`require`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- next.js, node.js, typescript, webpack
- Área
- backend, build-system, devtools
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.8k
- Forks
- 1.9k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 744
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
getsentry/sentry-javascript#26910 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Only create Nuxt database and storage spans when there is a parent spanQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoImprovement Nuxt
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
getsentry/sentry-javascript#25805 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Only create Cloudflare storage and D1 db spans when there is a parent spanQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoCloudflare Workers Improvement Spans
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-javascript#25804 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Core Feature: Typescript Meta: Breaking
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
getsentry/sentry-javascript#25286 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24200 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-javascript
Issues similares
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
garrytan/gbrain#10437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Posiblemente ocupada @acmerfight la tomó hoy. Abiertountriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
earendil-works/pi#12573 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
agentes-chat/agentes-chat#1506 ·
Los mantenedores suelen responder en 1 día
-
comp/desktop desktop/files os/windows P2 type/perf
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
NousResearch/hermes-agent#160359 ·
Los mantenedores suelen responder en 1 día
-
Missing repro Platform: Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
software-mansion/react-native-reanimated#11554 · 1 comentario ·
Los mantenedores suelen responder en 1 día