`cf deploy` / `cf build` need a package.json in the Worker directory that declares `@cloudflare/vite-plugin`
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, typescript, vite
- Lĩnh vực
- cli, developer-experience
Hướng nghiên cứu
Start by tracing implementation discovery used by cf build and cf deploy, especially the manifest check in the Worker's directory. Reproduce the Bun workspace case with the documented cf deploy --dry-run or cf build command, then verify that discovery reaches the workspace root or accepts an explicit root or manifest path. Done means both commands work without a Worker-local package.json.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
In a Bun workspace, a Worker whose cloudflare.config.ts and vite.config.ts sit in a subdirectory with no package.json of its own cannot be built or deployed with a bare cf deploy / cf build. The Vite plugin is installed at the workspace root. cf looks for a manifest only in the Worker's own directory:
$ cd packages/api/src/register && cf deploy --dry-run --mode staging
…
The manifest checked was: …/packages/api/src/register/(package.json|pyproject.toml|Cargo.toml)
The workaround is vite build --mode <m> in that directory, then cf deploy --prebuilt --mode <m>, which works.
Expected
Implementation discovery resolves @cloudflare/vite-plugin the way Node resolution does, walking up to the workspace root, or accepts an explicit --root / manifest path.
Environment
[email protected], @cloudflare/[email protected], Bun workspaces, macOS.
- Ngôn ngữ chính
- TypeScript
- Star
- 993
- Fork
- 65
- Merge trung bình
- 21 giờ 47 phút
- Pull request đã merge (30 ngày)
- 209
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 cloudflare/cf
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/cf#532 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/cf#344 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#262 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templateCó thể đã có người làm @jamesopstad đã nhận 25 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#223 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cloudflare/cf#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudflare/cf
Issue tương tự
-
bug
Độ 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
-
pending close triaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#62582 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
callstack/react-native-paper#5189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
live-codes/livecodes#1079 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: ESP 2 ROĐang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày