React Router wizard generates a Vite config that references an undefined `config`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript, vite
- Área
- tooling
Línea de trabajo
Start in src/react-router/codemods/vite.ts, reading createSentryPluginCall and addReactRouterPluginToViteConfig to see where the config identifier is emitted. Look for the existing codemod tests for that file, then reproduce the three shapes from the issue: a function config with a differently named parameter, with no parameter, and with a destructured parameter. Done means the generated Vite config builds for each of those, or the wizard declines and prints manual instructions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
@sentry/wizard master (b262ed0, 9.1.0 plus one commit), React Router integration, Vite 7. Reproduced by running the wizard's Vite codemod directly and building with the Sentry plugin stubbed, not a full wizard run.
Steps to Reproduce
- Have a function config whose parameter is not named
config:import { defineConfig } from "vite"; export default defineConfig(({ mode }) => ({ plugins: [] })); - Run
npx @sentry/wizard -i reactRouter. - Run
vite build.
Expected Result
The build works. The plugin receives the config the function was called with, or the wizard falls back to manual instructions.
Actual Result
The codemod always passes an identifier named config:
export default defineConfig(({mode}) => ({
plugins:[sentryReactRouter({ /* ... */ }, config)],
// ...
}));
error during build:
ReferenceError: config is not defined
See createSentryPluginCall and addReactRouterPluginToViteConfig in src/react-router/codemods/vite.ts. From reading the code, functions without a parameter or with a differently named one are affected too.
- Lenguaje dominante
- TypeScript
- Estrellas
- 297
- Forks
- 88
- Merge medio
- 5 h 29 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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-wizard
-
bug Next.js
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
getsentry/sentry-wizard#1397 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/sentry-wizard#1396 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
React Router Framework
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
getsentry/sentry-wizard#1392 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/sentry-wizard#1391 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Cocoa Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
getsentry/sentry-wizard#989 ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-wizard
Issues similares
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Posiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checksPosiblemente ocupada @Raj1v la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#4046 ·
Los mantenedores suelen responder en 1 día
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
traPtitech/knoQ_R-UI#290 ·
Los mantenedores suelen responder en 24 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
farion1231/cc-switch#9981 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
account bug course exam iris lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día