dev: dashboard fails on fresh checkout when devtools dist is missing
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 84/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- bun, next.js, typescript
- Lĩnh vực
- build-system, developer-experience
Hướng nghiên cứu
Bắt đầu trong turbo.json, nơi tác vụ dev hiện đang phụ thuộc vào quá trình build SDK, và kiểm tra lệnh dev của dashboard cùng package @databuddy/devtools. Tái hiện bằng bun run dev:dashboard từ một checkout không có packages/devtools/dist, sau đó xác minh rằng điều kiện tiên quyết được build và /login trả về 200 mà không cần bước build thủ công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 227
- Merge trung bình
- 21 giờ 11 phút
- Pull request đã merge (30 ngày)
- 238
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của databuddy-analytics/Databuddy
-
Load docs analytics using Next.js ScriptCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 74/100
databuddy-analytics/Databuddy#1147 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the GTM documentation test compatible with Windows line endingsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
databuddy-analytics/Databuddy#1146 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix locale-dependent number formatting on the pricing pageCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
databuddy-analytics/Databuddy#1145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(basket): redact sensitive params and keep query separators in batched outgoing link hrefsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
databuddy-analytics/Databuddy#1143 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor(home): standardize "Install tracking" empty state using EmptyState componentCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
databuddy-analytics/Databuddy#1138 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của databuddy-analytics/Databuddy
Issue tương tự
-
bug hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
libredb/libredb-studio#1941 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore other
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alastair-smith/card-games#308 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
paperclipai/paperclip#17379 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Anime Quote 626 (good-first-issue)Đang mởcommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
lingdojo/kana-dojo#33040 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug mobile ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày