`next start path-to-project` breaks config loading.

Đang mở
#746 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Tanu1201 đang làm issue này rồi.

Từ ngày 14/5/2024.

Đá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
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
next.js
Lĩnh vực
cli, developer-experience

Hướng nghiên cứu

Tái hiện lỗi bằng cách build, sau đó chạy next start projects/wp-nextjs từ thư mục gốc của monorepo và so sánh với việc chạy next start bên trong projects/wp-nextjs. Truy vết entry point next start path-to-project và hành vi tải cấu hình; hoàn thành khi cấu hình được tải từ dạng đường dẫn hoặc lời gọi không được hỗ trợ được ghi rõ trong tài liệu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

Because next start path-to-project apparentlys makes process.cwd() be where the next command was executed from, it breaks config loading.

I'm not sure if we can actually fix this, maybe we just need to document that next path-to-project isn't supported by HeadstartWP

Steps to Reproduce
  1. Do a build
  2. From the root of the monorepo run next start projects/wp-nextjs
  3. See an error about the config.
  4. Now run next start directly in projects/wp-nextjs and there's not issue.
Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Ngôn ngữ chính
TypeScript
Star
204
Fork
26
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 10up/headstartwp

Tất cả issue của 10up/headstartwp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.