dev: dashboard fails on fresh checkout when devtools dist is missing
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- bun, next.js, typescript
调研方向
从 turbo.json 开始,这里 dev 任务目前依赖 SDK 构建,然后检查 dashboard dev 命令和 @databuddy/devtools 包。在不包含 packages/devtools/dist 的 checkout 中运行 bun run dev:dashboard 进行复现,然后验证前置条件已构建,并且无需手动构建步骤,/login 即可返回 200。
由索引模型根据 Issue 内容生成。
描述
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
- Start from a checkout where
packages/devtools/distis absent. I reproduced this locally by moving that directory out of the way. - Run
bun run dev:dashboard. - Request
http://localhost:3000/loginsoapps/dashboard/app/layout.tsxcompiles.
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.
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 227
- 平均合并
- 21 小时 11 分钟
- 30 天内合并 PR
- 238
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
databuddy-analytics/Databuddy 的其他 Issue
-
Load docs analytics using Next.js Script可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1-3 小时 新手友好度 74/100
databuddy-analytics/Databuddy#1147 ·
维护者通常 1 天内回复
-
Make the GTM documentation test compatible with Windows line endings可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
databuddy-analytics/Databuddy#1146 ·
维护者通常 1 天内回复
-
Fix locale-dependent number formatting on the pricing page可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
databuddy-analytics/Databuddy#1145 ·
维护者通常 1 天内回复
-
fix(basket): redact sensitive params and keep query separators in batched outgoing link hrefs可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
databuddy-analytics/Databuddy#1143 ·
维护者通常 1 天内回复
-
refactor(home): standardize "Install tracking" empty state using EmptyState component可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1-3 小时 新手友好度 85/100
databuddy-analytics/Databuddy#1138 ·
维护者通常 1 天内回复
查看 databuddy-analytics/Databuddy 的全部 Issue
相似的 Issue
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
apex-dev-tools/apex-log-parser#199 ·
维护者通常 1 天内回复
-
area/frontend/library-panels automated-triage type/bug type/ux
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
PostHog/posthog.com#21607 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialog可能已有人在做 @seijikohara 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复