Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

React client files changes doesn't work without restarting Docker container

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker-compose, react, typescript
Lĩnh vực
devops, frontend

Hướng nghiên cứu

Tạo client bằng docker-compose exec client generate-api-platform-client, sau đó tái hiện vấn đề bằng cách chỉnh sửa client/src/index.js và client/src/Welcome.js trên Windows 10. Kiểm tra lý do container client không phản ánh các thay đổi đã lưu hoặc không tải lại trang đã cập nhật; hoàn tất khi các thay đổi xuất hiện mà không cần dừng và khởi động lại container.

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

Mô tả

Hi!

First of all, thanks a lot for your awesome work with API Platform! :)

I have a problem with the React client:

After generating the client with this command (from website tutorial): docker-compose exec client generate-api-platform-client (no problem all files are generated and no error message), I edited the client/src/index.js as it's mentioned in the doc but when I add modifications, save the file, and reload the page (https://localhost/books/), "Not Found" is displayed.
Same thing when I edit client/src/Welcome.js file (add two exclamation points for example): nothing change.
I have to stop the client container, and restart it to see my changes :/

Do you see where is the problem?

I'm on Windows 10 with Docker for Windows (latest version).

Don't hesitate to ask me further information!

Thanks ;)

Ngôn ngữ chính
TypeScript
Star
376
Fork
132
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 api-platform/create-client

Tất cả issue của api-platform/create-client

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.