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

API schema is undefined React Admin with Hydra problem with introspect

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

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
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Lĩnh vực
api, frontend

Hướng nghiên cứu

Bắt đầu với src/hydra/dataProvider.ts và tái hiện thiết lập đã được báo cáo bằng Next.js 13.4.19, React Admin và backend Hydra, tập trung vào kết quả introspection và apiSchema undefined. Được xem là hoàn tất khi dữ liệu API tải mà không cần hack, các trường chips được điền và việc chỉnh sửa không khiến dữ liệu biến mất.

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

Mô tả

We recently decided to use React Admin with API Platform for our internal app. React Admin linked your repo in their documentation, with a comment that this is a suitable dataProvider for our set up. Unfortunately, it doesn’t work as we hoped, and I wonder why.

Let me guide you through our case.
We have configured React admin with Next.js (v 13.4.19) with Hydra (JSON-LD) as the backend.

  1. At first, we implemented dataProvider as it is, regarding to the repo linked in the documentation:
    https://github.com/api-platform/admin/blob/main/src/hydra/dataProvider.ts
    but we were not able to display the API data at all, with the error as on the screen nr 1
nr 1
  1. Then mostly for debugging purposes, we have added a hacky solution in the code to make apiSchema optional: screen nr 2 and we were able to display some data and even create some views as usersList, singleUser, userEdit but not everything worked as one might expect. Check out the chips fields it remains empty: screen nr 3.
nr 2 nr 3
  1. Then we tried to edit the user in edit view: screen 4
nr 4
  1. After the editing for few seconds you can see the changes on usersList, even the chips fields work: screen 5
nr 5
  1. And then it all disappears with an error message: screen 6
nr 6

From what we have observed, there is an introspection issue and apiSchema returns an undefined value when we try to log it.

Ngôn ngữ chính
TypeScript
Star
516
Fork
134
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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/admin

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

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.