Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

API schema is undefined React Admin with Hydra problem with introspect

オープン
#525 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
next.js, react, typescript
領域
api, frontend

調査の方向性

src/hydra/dataProvider.ts から始め、Next.js 13.4.19、React Admin、Hydra バックエンドを使って報告されたセットアップを再現し、イントロスペクションの結果と undefined apiSchema に焦点を当ててください。API データがハックなしで読み込まれ、chips フィールドに値が入り、編集してもデータが消えなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
516
フォーク
134
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

api-platform/admin のほかの issue

api-platform/admin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。