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

lb4 relation doesn't find models

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

メンテナーはふだん 2 日以内に返信

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

評価

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

調査の方向性

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

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

説明

bug
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

主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
4日 22時間
マージ済み PR(30日)
31

環境構築

はじめの一歩

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

loopbackio/loopback-next のほかの issue

loopbackio/loopback-next の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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