loopbackio / loopbackio/loopback-next

lb4 relation doesn't find models

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

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

bug
主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
2日 21時間
マージ済み PR(30日)
27

説明

Describe the bug

I have a project with a lot of models. I organized the models in "sub directories" inside "models" directory.
The "export" is working properly and all the project is working.
What is not working is the possibility to add repositories, relations or anything else
"lb4 relation" stops with an error "Generation is aborted: Error: No models found in ".../src/models"."
I expect the script to be capable to look for models also inside according to what is available in "index.ts" from "models" directory.

Logs

No response

Additional information

No response

Reproduction

https://github.com/danysz/demo-lb4-cli-model-not-found

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

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

はじめの一歩

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

調査の方向性

lb4 relation コマンドと issue にリンクされている再現プロジェクトから始め、その後、src/models をどのようにスキャンし、そのディレクトリの index.ts をどのように使用しているかを調べます。サブディレクトリに整理されたモデルが、関係またはリポジトリの生成時に検出され、「No models found.」が出力されなくなれば作業完了です。

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

評価

技術スタック
nodejs, typescript
領域
cli, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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