Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

dev: dashboard fails on fresh checkout when devtools dist is missing

Abierto Apto para principiantes
#643 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
bun, next.js, typescript

Línea de trabajo

Comienza en turbo.json, donde la tarea dev depende actualmente de la compilación del SDK, e inspecciona el comando dev del dashboard y el paquete @databuddy/devtools. Reproduce el problema con bun run dev:dashboard desde un checkout sin packages/devtools/dist y verifica después que se construya el prerrequisito y que /login devuelva 200 sin un paso de compilación manual.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

bun run dev:dashboard can fail on a fresh checkout because the dashboard imports @databuddy/devtools/react, but the dev task only builds @databuddy/sdk before starting the apps.

@databuddy/devtools exports ./react from ./dist/react/index.mjs, so when packages/devtools/dist has not been built yet, Next/Turbopack cannot resolve the dashboard layout import.

Reproduction

  1. Start from a checkout where packages/devtools/dist is absent. I reproduced this locally by moving that directory out of the way.
  2. Run bun run dev:dashboard.
  3. Request http://localhost:3000/login so apps/dashboard/app/layout.tsx compiles.

Actual behavior

The route returns 500 and Next reports:

Module not found: Can't resolve '@databuddy/devtools/react'
./apps/dashboard/app/layout.tsx:6:1

Expected behavior

bun run dev:dashboard should prepare all dist-only workspace packages required by the dashboard, then /login should compile without a manual devtools build step.

Local verification

After the failure above, I ran:

bun run build --filter @databuddy/devtools

That recreated packages/devtools/dist, and the same /login request returned 200 OK on the same dev server.

Likely fix

turbo.json currently has:

"dev": {
  "dependsOn": ["@databuddy/sdk#build"],
  "cache": false,
  "persistent": true
}

A small fix would add the devtools build prerequisite for the dashboard dev path as well, either globally on dev or as a dashboard-specific task if that is preferred.

Happy to open a focused PR against staging if this direction looks right.

Disclosure

I used AI assistance to inspect the repo and format this report. I manually reproduced the failure, verified the 500 response, ran the devtools build, and verified the route recovered with 200 OK.

Lenguaje dominante
TypeScript
Estrellas
1.2k
Forks
220
Merge medio
12 h 12 min
PR fusionados (30 d)
295

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de databuddy-analytics/Databuddy

Todos los issues de databuddy-analytics/Databuddy

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.